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:19] – 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 see the tutorials 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
tutorials/r_plots.1791778792.txt.gz · Last modified: by hychang