Skip to content

SherryDong/create_plot_by_R_base

Repository files navigation

Create plot by R base

Share with codes that create interesting plot by using R-base.

Download the html file or Rmd file and follow the instructions.

Before Start

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:

Preparations

Demo1: create DNA double helix

Demo2: create network plot

Demo3: adjust a figure

Demo4: create a plot with multiple subgraphs

Demo5: create sankey diagrams and circos

Course materials

In FIST_classR_materials/: materials for Fudan FIST R course.

Check: R_Course_20210825.html or R_Course_20210825.Rmd file for codes

About

Create plot by R base

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published