User Tools

Site Tools


tutorials:r_plots

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:r_plots [2026/10/12 12:17] – hychangtutorials:r_plots [2026/10/13 10:44] (current) – [Box plots] hychang
Line 4: Line 4:
  
 An user guide to walk through data visualization by box plot in R.\\ 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.\\+Please see the tutorials for more details.\\
  
  
Line 159: Line 159:
 #--------------------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------------------
  
-#### Step 3. Generating Plots+#### Step 3. Generate Plots
  
 # Version 1 # Version 1
Line 205: Line 205:
  
 #--------------------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------------------
-#### Step 4. Exporting Plots+#### Step 4. Export Plots
  
 ## Export PDF ## Export PDF
Line 223: Line 223:
 ## Export PNG ## Export PNG
  
-# Version 1 PNG export (default: 480 × 480 pixels, resolution of 72 dpi)+# Version 1 PNG export
 png(file.path(output_path, output_file_3), width = png_width, height = png_height) png(file.path(output_path, output_file_3), width = png_width, height = png_height)
 p1 p1
 dev.off() dev.off()
  
-# Version 2 PNG export (default: 480 × 480 pixels, resolution of 72 dpi)+# Version 2 PNG export
 png(file.path(output_path, output_file_4), width = png_width, height = png_height) png(file.path(output_path, output_file_4), width = png_width, height = png_height)
 p2 p2
Line 412: Line 412:
 #--------------------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------------------
  
-#### Step 3. Generating Plots+#### Step 3. Generate Plots
  
 # Version 1 # Version 1
Line 460: Line 460:
  
 #--------------------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------------------
-#### Step 4. Exporting Plots+#### Step 4. Export Plots
  
 ## Export PDF ## Export PDF
Line 478: Line 478:
 ## Export PNG ## Export PNG
  
-# Version 1 PNG export (default: 480 × 480 pixels, resolution of 72 dpi)+# Version 1 PNG export
 png(file.path(output_path, output_file_3), width = png_width, height = png_height) png(file.path(output_path, output_file_3), width = png_width, height = png_height)
 p1 p1
 dev.off() dev.off()
  
-# Version 2 PNG export (default: 480 × 480 pixels, resolution of 72 dpi)+# Version 2 PNG export
 png(file.path(output_path, output_file_4), width = png_width, height = png_height) png(file.path(output_path, output_file_4), width = png_width, height = png_height)
 p2 p2
Line 499: Line 499:
   * **Version 1**: Displays data with batches shown in distinct colors.   * **Version 1**: Displays data with batches shown in distinct colors.
     * PNG: setting width 600 and height 400.     * PNG: setting width 600 and height 400.
-    * {{  }} +    * {{ mult-batches_v01.png }} 
-    * PDF: width 6 inch and height 4 inch. {{  }}+    * PDF: width 6 inch and height 4 inch. {{ mult-batches_v01.pdf }}
   * **Version 2**: Displays batches in distinct colors and adds statistical significance group labels at the top.   * **Version 2**: Displays batches in distinct colors and adds statistical significance group labels at the top.
     * PNG: setting width 600 and height 400.     * PNG: setting width 600 and height 400.
-    * {{ }} +    * {{ mult-batches_v02.png }} 
-    * PDF: width 6 inch and height 4 inch. {{  }}+    * PDF: width 6 inch and height 4 inch. {{ mult-batches_v02.pdf }}
  
tutorials/r_plots.1791778651.txt.gz · Last modified: by hychang