R Graphics Gallery

An  R graphics gallery has been created with simple scripts for long-term reference and to expedite data visualization.

Bar Plot of Vector

plot3          Click to enlarge

Bar Plot of Matrix: #1

plot4          Click to enlarge

Bar Plot of Matrix: #2

plot5          Click to enlarge

Box Plot

plot6          Click to enlarge

In order to access the values behind the chart, simply set the boxplot() argument plot=FALSE.  A statistical summary is generated.

Contour Plot

plot7          Click to enlarge

Dot Chart

plot8          Click to enlarge


plot9          Click to enlarge

The hist() function returns a useful statistical summary if the argument plot=FALSE is used.  The summary defines the breakpoints for the bins and counts per bin.  For example:

The following example shows how bin summary data can be used.  Function pretty() takes a vector argument and divides its range into n equally spaced, ordered values, as shown in the histogram below:

plot10          Click to enlarge

Using segments()

Plot111Click to enlarge

Using polygon()

Plot112Click to enlarge

Image Plot

plot11          Click to enlarge


plot12          Click to enlarge

Pairs Plot

plot13          Click to enlarge

Perspective Plot

plot14          Click to enlarge

Pie Chart

plot15          Click to enlarge

QQNorm Plot

plot16          Click to enlarge

Back | Next

Leave a Reply

Your email address will not be published. Required fields are marked *