Share with codes that create interesting plot by using R-base.
Download the html file or Rmd file and follow the instructions.
I really appreciate some fancy R packages for visualization and they are really great tools for people to use (e.g ggplot2 and htmlwidgets for R). But I just like to design and create plots by R base, especially for figures used in manuscript (most not interactive). It is more flexible but sometimes complicated.
This tutorial is designed to share with my experience of how to play with R base.
The main idea of creating plots is to calculate the position of each item you want to display.
The html files (generated by R markdown) include the following sections:
In FIST_classR_materials/: materials for Fudan FIST R course.
Check: R_Course_20210825.html or R_Course_20210825.Rmd file for codes