Plotting using ggplot2 in R
This is a guide on how to create various publication-quality figures. Here you will find brief explanations on different plots, sample data, and a R script tutorial. Download these by clicking the first (e.g., Bar Plots), second (e.g., Bar Plot Data), and third (e.g., Bar Plot Script) link in the corresponding plot type. The script is working script with comments on each line explaining what it does. The best way to learn is to delete/ change/ play with every single one of these lines (that's how I got this far!). If you have any questions, feel free to email me at [email protected]. Enjoy!
Bar Plots Bar Plot Data Bar Plot Script Grouped Bar Plots Grouped Bar Plot Data Grouped Bar Plot Script Scatterplots Scatterplot Data Scatterplot Script Scatterplot with Categorical IV (In progress) Scatterplot Categorical Data Scatterplot Categorical Script Line Plots (ERP Plot) Line Plot Data Line Plot Script Box Plots (In progress) Box Plots Data Box Plots Script |