Simple diagrams in R