User Tools

Site Tools


tutorials:r_plots

This is an old revision of the document!


R plots

Box plots

An user guide to walk through data visualization by box plot in R.
Please download the tutorial and open with browser (like Chrome) for more detail.

R Markdown Document for Boxplots

One batch with replicates

Sample input

R script

Sample output

Plots can be exported as PDF or PNG files. Here shows the PNG files.

* **Version 1**: Displays all data points using a single, uniform color.
  * PNG: setting width 600 and height 400.
  * {{ simple_boxplot1_w600h400.png }}


  • Version 2: Colors data points by Strain and adds statistical significance group labels at the top.
    • PNG: setting width 600 and height 400.


Multiple batches with replicates

Sample input

R script

Sample output

Plots can be exported as PDF or PNG files. Here shows the PNG files.

  • Version 1: Displays data with batches shown in distinct colors.
    • PNG: setting width 600 and height 400.
  • Version 2: Displays batches in distinct colors and adds statistical significance group labels at the top.
    • PNG: setting width 600 and height 400.
tutorials/r_plots.1789549906.txt.gz · Last modified: by hychang