A framework for R graphics