Creating histograms and density plots
Creating multiple plot matrix layouts
Beyond the Basics: Adjusting Key Parameters
Setting colors of points, lines, and bars
Setting plot background colors
Setting colors for text elements: axis annotations, labels, plot titles, and legends
Choosing color combinations and palettes
Setting fonts for annotations and titles
Choosing plotting point symbol styles and sizes
Choosing line styles and width
Adjusting axis annotations and tick marks
Setting graph margins and dimensions
Grouping data points within a scatter plot
Highlighting grouped data points by size and symbol type
Correlation matrix using pairs plot
Using jitter to distinguish closely packed data points
Adding non-linear model curves
Adding non-parametric model curves with lowess
Making three-dimensional scatter plots
How to make Quantile-Quantile plots
Displaying data density on axes
Making scatter plots with smoothed density representation
Creating Line Graphs and Time Series Charts
Adding customized legends for multiple line graphs
Using margin labels instead of legends for multiple line graphs
Adding horizontal and vertical grid lines
Adding marker lines at specific X and Y values
Plotting functions of a variable in a dataset
Formatting time series data for plotting
Plotting date and time on the X axis
Annotating axis labels in different human readable time formats
Adding vertical markers to indicate specific time events
Plotting data with varying time averaging periods
Creating Bar, Dot, and Pie Charts
Creating bar charts with more than one factor variable
Adjusting the orientation of bars—horizontal and vertical
Adjusting bar widths, spacing, colors and borders
Displaying values on top of or next to the bars
Creating bar charts with vertical error bars
Modifying dot charts by grouping variables
Making better readable pie charts with clockwise-ordered slices
Labelling a pie chart with percentage values for each slice
Adding a legend to a pie chart
Visualizing distributions as count frequencies or probability densities
Setting bin size and number of breaks
Adjusting histogram styles: bar colors, borders, and axes
Overlaying density line over a histogram
Multiple histograms along the diagonal of a pairs plot
Histograms in the margins of line and scatter plots
Creating Box and Whisker Plots
Creating box plots with narrow boxes for a small number of variables
Varying box widths by number of observations
Creating box plots with notches
Including or excluding outliers
Adjusting the extent of plot whiskers outside the box
Showing the number of observations
Splitting a variable at arbitrary values into subsets
Creating Heat Maps and Contour Plots
Creating heat maps of single Z variable with scale
Creating correlation heat maps
Summarizing multivariate data in a heat map
Creating three-dimensional surface plots
Visualizing time series as calendar heat maps
Plotting global data by countries on a world map
Creating graphs with regional maps
Finalizing graphs for publications and presentations
Exporting graphs in high resolution image formats: PNG, JPEG, BMP, TIFF
Exporting graphs in vector formats: SVG, PDF, PS
Adding mathematical and scientific notations (typesetting)
Adding text descriptions to graphs
Choosing font families and styles under Windows, Mac OS X, and Linux