
Introduction to the par family
Changing parameters with par
Par functions from A - F
Par functions from F to L
Par from L to M
Point Types
Introduction to par from P to X
Types of plot function
Different ways of adding text to a plot
Adding line with abline - lower level plotting
Adding symbols to plot
Adding legends
Formatting axes
Summary
Explore an exercise database for R programming with blocks of ten questions on topics like functions, data frames, and graphs; learn how to access, use, and contribute.
Boxplots
Adding means to boxplots
Histograms
Binsizes
Combined histograms
Single and grouped bar plots
Pie charts
Summary
Explore two base plots exercises using the quakes data: two histograms of magnitude and depth on one sheet, and a horizontal, notched box plot of price by clarity.
Learn how to create nested bar plots in R using the plotrix package, by specifying a grouping formula and visualizing data grouped by sex and nationality.
Explore three dimensional pie charts in r, customize explode effects, borders, and shading, and compare with fan plots to clarify data using labels and values.
Create gap plots in R with the plot tricks library, adjusting y-axis gaps and color groups. Add a table to the plot to decode the color coding.
Apply line clip to add horizontal, vertical, and slope lines and regression fits in plots in R. Create circular text, circles, and zoom.
Summary
Demonstrate practical plotting with the Plotrix package in R by solving exercises on pie 3D charts, gap plots, and Stirling's trapping scatterplot, including tables and labeled axes.
Explore plotting options in R with qplot using the iris data, including line, scatter, and path plots, colored by species, smoothed with lm, and with confidence intervals removed.
Create histograms with qplot, adjust binwidth and breaks, and generate density plots with facets, using iris data to explore color, size, shape, and alpha aesthetics.
Master ggplot basics with Chichi plot layers, specifying data and mappings, and adding layers with the plus sign; explore histogram, density, and bar, noting layer order and position mapping.
Explore scatter plots with Jiechi plot in ggplot, using a data frame with x, y, and group, and layer aesthetics like color, shape, and size while customizing legends and scales.
Format text in ggplot by adding titles with ggtitle or labs, customize axis labels via theme, and annotate text with x and y coordinates, size, and color gradients.
Learn to create and customize histograms in ggplot for R, using geom_histogram and density layers, adjusting bin width and bandwidth, and comparing iris groups.
Create and customize box plots with ggplot in R, using the iris dataset grouped by species; adjust outliers, flip orientation, add mean points, and distinguish setting from mapping for legends.
Practice ggplot2 by building a scatterplot of miles per gallon versus horsepower from the base package dataset, with cylinder count, then add a title, annotation, smoother, and a faceted histogram.
Learn ggplot2 techniques for visualizing car data with mpg, horsepower, and cylinder, including custom two-line titles, a scatter plot with arrows and a smoothing line, and faceted histograms.
Create box plots and violin plots in R to compare distributions across iris species, using panel layouts, density options, and histograms. Assess data distribution with q-q plots.
R-Tutorials shows how to create convincing graphs in R
Do you want to create insightful graphs?
Do you want to show your data crystal clear?
Do you want your data to be understood by everyone?
Do you want a versatile graphics toolbox?
Do you want powerful formatting skills?
If you anwered YES to some of these questions - this course is for you!
Data is useless if you do not have the right tools to build informative graphs. Plots need to be understood easily while being accurate at the same time. R-Tutorials gladly enlarges your data toolbox so that you can surmount in your career.
R offers a variety of plotting devices, some of them (like ggplot2) are whole systems which need to be learned like a new language. R-Tutorials shows how to learn those languages.
In this course you will learn about the most important plotting packages ggplot2, lattice and plotrix. According to the teaching principles of R Tutorials every section is enforced by exercises for a better learning experience. You can download the code pdf of every section to try the presented code on your own.
The course starts with the base parameters which are needed to format and manipulate any basic graphs in R.
After that you will learn about the most common types of graphs in R base and you will see some very useful graphical extensions of the plotrix package.
Ggplot2 is a very famous graphs package and is viewed as the most powerful graphics device R has to offer. You will get an in depth tutorial on that package.
At last you can see how Lattice offers some more very useful functions.
With that knowledge you will have an extremely powerful toolbox to excel in your career and in your studies.
What R you waiting for?
Martin