How to Modify Plots in R R Tutorial 2 8 horizontal error bars ggplot2



Learn how to modify plots produced in R to change from the default values.



  • Learn how to modify plots produced in R to change from the default values. This tutorial shows how to use commands such as "plot", "cex", "pch", "axis", "par", "mfrow", "col" and many more. This video is a tutorial for programming in R Statistical Software for beginners. You can access and download the "LungCapData" dataset here: Excel format: There Tab Delimited Text File: In this place Here is a quick overview of the topics addressed in this video: 0:00:31 how to access help menu in R for different plotting parameters using "par" command 0:01:00 how to change the size of the plotting characters in R using the "cex" argument 0:01:24 how to change the size of the title of a plot in R using the "cex.main" argument 0:01:36 how to change the size of the x and y labels of a plot in R using the "cex.lab" argument 0:01:51 how to change the size of the x and y axes values using "cex.axis" argument 0:02:16 how to change the fonts of the title of a plot in R using the "font.main" argument 0:02:45 how to change the font of the x or y labels of a plot in R using the "font.lab" argument 0:02:58 how to change the fonts of the x and y axis of a plot in R using the "font.axis" argument 0:03:21 how to change the colour of the plotting characters in R using the "col" argument 0:03:39 how to change the colour of the title of a plot in R using the "col.main" argument 0:03:48 how to change the colour of the x and y labels of a plot in R using the "col.lab" argument 0:03:56 how to change the colour of the x and y axis of a plot in R using the "col.axis" argument 0:04:26 how to change the plotting character in R using the "pch" argument 0:05:03 how to add a regression line to a plot in R using the "abline" command and change the line colour (using "col" argument), the line type (using "lty" argument) and the width of the line (using "lwd" argument) 0:05:45 how to identify different groups on the same plot (eg. male or female) using different plotting characters and colours 0:06:39 how to re-label x-axis and y-axis using the "xlab" and "ylab" arguments 0:07:05 how to add more points or observations to an existing plot using the "points" command 0:07:53 how to produce multiple plots on one screen in R using "mfrow" or "mfcol" arguments 0:10:10 how to re-label the axes of a plot in R 0:10:39 how to remove labels from x or the y-axis using the "axes" argument 0:11:47 how to re-label the x or y axis using the "side" argument and "axis" command 0:13:38 how to add a box around the plot in R using the "box" command 0:13:53 how to add values on top of the plot or on the right side of the plot in R using the "axis" command and "side" argument