initial draft of R graphics implementation