Skip to main content.
search :

2D Histogram

The fucntion hist2d creates a 2-dimensional histogram by cutting the x and y dimensions into nbins [...]

Quantile regression

A graph for presenting individual growth with time in a population with: - Histograms of size dist[...]

Scatterplots with smoothed densities color representation

smoothScatter produces a smoothed color density representation of the scatterplot, obtained th[...]

stars

Draw star plots or segment diagrams of a multivariate data set. With one single location, also draws[...]

Winner of the R Homepage
graphics competition 2004

This is a complex layout arrangement illustrating how several graph can be put together as the user [...]

Three dimensional plotting

Three dimensional plotting of points. Produces a nice-looking 3D scatterplot with greying out of fur[...]

Scatterplot with Tufte axes

fancyaxis() draws an axis showing information about the marginal distribution of a variable as sugg[...]

The Bagplot : 2D boxplot

The bagplot is a 2D generalization of the boxplot. The red asterisk is the bivariate median. The d[...]

Scatterplot with marginal histograms

layout allows you to separate the screen in several parts. The current graphs is a simple scatterpl[...]

Tests and Mathematical annotations

This code illustrate how to add Mathematical annotations in a plot, how to play around with polygons[...]

standard bar plot

Creates a bar plot with vertical bars. The outputs of the barplot function is used here to add more [...]

Agreement plot

Representation of a $k*k$ confusion matrix, where the observed and expected diagonal elements are re[...]

Highest density regions

Plot of the density (as it is estimated by the kernel method) and the highest density regions. Re[...]

Andrew curves

Here is an example of the Andrew curve on iris data[...]

teapot 2

The teapot is a common example of 3d graphics. This graph uses R to transform and display the teapot[...]

barplot2 : Enhanced Bar Plots

An enhancement of the standard barplot() function. Creates a bar plot with vertical or horizontal ba[...]

conditionnal histogram

This is an example of a lattice graph showing histograms of a variable conditionnal to two other var[...]

Perspective plot.
Less simple DEM model

The Maunga Whau Volcano. We border the surface, to make it more "slice like" and color the top and [...]

Wind rose diagram

[...]

Correlation matrix ellipses

The plotcorr function plots a correlation matrix using ellipse-shaped glyphs for each entry. The ell[...]

Soil Texture Plot

soil.texture displays a triangular plot area on which soil textures defined as proportions of sand, [...]

Ternary Plot

Graphs for a dataframe with 3 columns of positive or null values triangle.plot is a scatterplo[...]

Assignments of a SOM

This plot shows the points from crabs dataset assigned by a SOM (Self Organizing Map). The points a[...]

graphical low-level parameters

A set of examples of few graphical low-level parameters lend, ljoin, xpd, adj, legend(), axis, expr[...]

Multiple histogram

Given a list, plots a side-by-side barplot containing the histograms of the elements[...]

contour plot
Maunga Whau Volcano

Maunga Whau Volcano. Contour plot using heat colors.[...]

contour plot
Maunga Whau Volcano

Maunga Whau Volcano. Contour plot using heat colors.[...]

stars network

This plot draws a network but at the nodes we have simple segment plots (and in general we might hav[...]

The boxplot friends

Some boxplot-like methods. The fisrt figure show the underlying density of the random generated data[...]

Conditional (Regression) Tree

Conditional trees estimate a regression relationship by binary recursive partitioning in a condition[...]

Backward selection in arima models

That plot shows the step of selection of coefficients in an ARMA(7,3) model. Each row of the center [...]

Circular density estimate

Circular density estimate[...]

A filled histogram

A filled histogram, showing how to change the font used for the main title without changing the oth[...]

Multicolor text in title

This uses the phantom function to create a multicolored title. This is based on a discussion on [...]

Ternary Diagram

Visualizes compositional, 3-dimensional data in an equilateral triangle. A points' coordinates ar[...]

Partitions of a qda classification

Provides a multiple figure array which shows the classification of observations based on classificat[...]

Image lag plot matrix

Produces an image lag plot matrix of large timeseries where the colors encode the density of the po[...]

4D contour plot

This plot visualizes four-dimensional data -- i.e., a data set in which two control variables joi[...]

splom : scatter plot matrices

splom produces Scatter Plot Matrices. The role usually played by panel is taken over by superpanel, [...]

radial.plot

radial.plot displays a plot of radial lines, polygon(s) or symbols centered at the midpoint of the p[...]

Conditionning plot

Conditionning plot[...]

An other perspective plot of the Maunga Whau

An other perspective plot of the Maunga Whau with a nice set of colors.[...]

Extended Association Plots

Association plots have been suggested by Cohen (1980) and extended by Friendly (1992) and provide a [...]

The level of interest in R

Colored plot margins, axis labels and titles. You do need to be careful with these kinds of effect[...]

Double coplot

A double conditioning plot using the crabs dataset in MASS. This plot shows frontal lobe lengths ag[...]

Extended Sieve Plots

(Extended) sieve displays for n-way contingency tables: plots rectangles with areas proportional to [...]

Walter and Lieth climatic diagram

Plot of a Walter & Lieth climatic diagram of a station. A good explanation on climatic diagram can[...]

Correlation Matrix

Visualization of a Correlation Matrix. On top the (absolute) value of the correlation plus the resul[...]

splom 2 : scatterplot matrices

splom produces Scatter Plot Matrices. The role usually played by panel is taken over by superpanel, [...]

Extended mosaic plots

Mosaic displays have been suggested in the statistical literature by Hartigan and Kleiner (1984) and[...]

Effect plot

Effect display References : Fox, J. (1987) Effect displays for generalized linear models. [...]

Use of clipping and translucent colors

This plot illustrates the use of the clip function by drawing the same histogram multiple times with[...]

Self Organizing Maps

shardsplot corresponds to the representation method suggested by Cottrell and de Bodt (1996) for Koh[...]

Restart-from-10-clusters colored dendrogram

Hierarchical clustering may start from clusters created by an other method. That plot shows the dend[...]

Boxplots

Nice coloured boxplots. See how the legend is put on the upper-left corner thanks to gplots::smart[...]

Conditional (Classification) Tree

Conditional trees estimate a regression relationship by binary recursive partitioning in a condition[...]

Image profiles

These are two scripts which I wrote because I did not find any tool, which is able to produce these [...]

rainbow in the RGB space

A rainbow of 201 colors is displayed in the 3d RGB space.[...]

Image scatter plot matrix

The ipairs function produces an image scatter plot matrix of large datasets where the colors encode[...]

ROC curve with cross validation

ROC curve with cross validation[...]

contour plot
Maunga Whau Volcano

Maunga Whau Volcano. Contour plot using gray scales.[...]

heatmap

A heat map is a false color image (basically image(t(x))) with a dendrogram added to the left side a[...]

Bivariate Highest density regions

Plot of the density in 2d space (as it is estimated by the kernel method) and the highest density re[...]

(Log) Odds Ratios Plots

Plots (log) odds ratios, computed by oddsratio for 2 x 2 x k-tables, along with confidence intervals[...]

Parallel plot

[...]

superbarplot

Plot a barplot, with bars nested and ranging from a max to a minimum value. A similar graphic is use[...]

Association Plots

Produce a Cohen-Friendly association plot indicating deviations from independence of rows and column[...]

Parallel plot 2

An other parallel plot with the famous iris data.[...]

List of colors

A list of popular names for colors from packages RColorBrewer, colorRamps, grDevices[...]

Tukey's Hanging
Rootogram

Discrete frequency distributions are often graphed as histograms, with a theoretical fitted distribu[...]

Rose diagram

Creates a rose diagram of a circular data set. The circumference of the circle is split into groups[...]

Correlograms

The corrgram function produces a graphical display of a correlation matrix, called a correlogram. Th[...]

A Topographic Map of Maunga Whau
contour plotting

Contour plotting This produces a topographic map of one of Auckland's many volcanic "peaks". [...]

Conditional (Survival analysis) Tree

Conditional trees estimate a regression relationship by binary recursive partitioning in a condition[...]

QQ plot

Quantile-Quantile plot for precip data against normal distribution. The added line passes by the fir[...]

Times Series : Forecasting

Here is an example of forecasting an AR(1) process. arima.sim is used to generate a time series from[...]

Hexagon Binning
Matrix

Hexagon binning is a form of bivariate histogram useful for visualizing the structure in datasets w[...]

Scatter plot 3D

Iris data in 3 dimensions[...]

Violin plot

Violin plot are similar to boxplot except that they show the density of the data, estimated by kerne[...]

steep decline in market capitalization

This is an alternative version of the graph used by the financial times to represent steep decline i[...]

Conditionnal Density Plots

The plot describes how the distribution of a categorical variable y changes over a numerical variabl[...]

Perspective plot
Maunga Whau, One of 50 Volcanoes in the Auckland Region

Perspective plotMaunga Whau, One of 50 Volcanoes in the Auckland Region[...]

Chernoff faces

representation of the rows of a data matrix by faces. The features paramters of this implementation[...]

hexbins

Density estimation by hexagonal bins.[...]

Double decker plot

Doubledecker plots visualize the dependence of one categorical (typically binary) variable on fu[...]

Box-Percentile plot

Box-percentile plots are similiar to boxplots, except box-percentile plots supply more information a[...]

Diagnostic distribution plots

distplot plots the number of occurrences (counts) against the distribution metameter of the specifie[...]

3D barplot

Playing with scatterplot3d, it is possible to draw a 3D barplot. The trick is to use type="h" and lw[...]

demo of atomic functions

A list of examples for the atomic functions polygon(), segments(), symbols(), arrows(), curve(), ab[...]

graphical parameter settings

Examples for different settings of: the type and width for lines and the type and size for point[...]

Circles Plot

A simple pseudo three dimensional scatterplot of circels whose sizes index a thrid variable.[...]

Bangdiwala's Observer Agreement Chart

Representation of a k by k confusion matrix, where the observed and expected diagonal elements are r[...]

Lattice graphic

An example lattice graph illustrating how to control separate elements in a point and line plot in o[...]

ACF and PACF

The function acf computes (and by default plots) estimates of the autocovariance or autocorrelation [...]

Edgar Anderson's Iris Data
pairs plot

A scatterplot matrix. The good old Iris data (yet again) [...]

back to back histogram

The two histogram are plotted back to each other.[...]

Matlab quiver function

a simple version of matlab's quiver function. A vector, tensor, field, 2d arrow plot. More compre[...]

Linear discriminant analysis

See the help page for lda and its plot method. [...]

ROC curve

ROC curve[...]

hexbin 2d generalization of boxplot

This is a 2D generalization of boxplot. Data is split in hexagonal bins. [...]

Histogram with equal counts

Histogram with equal counts. The breaks are computed by the quantiles. This example also shows how o[...]

Meta analysis plot (forest plot)

Plot confidence intervals with boxes indicating the sample size/precision and a diamond indicating a[...]

Pie chart
A sample color wheel

A little color wheel. This code just plots equally spaced hues in a pie chart. If you have a cheap[...]

Simple Use of Color In a Plot

Here is some code which illustrates some of the differences between R and S graphics capabilities. [...]

Regular time series

Plots one or more regular time series in multiple figures on one or more screens (pages). In thi[...]

Cumulative histogram

from : here The cumulative histogram is a variation of the histogram in which the vertical axis giv[...]

Geographic cluster analysis

A simple layout arrengement. On the left side, usa map with states coloured regarding the result of [...]

Funnel plot for publication bias

Plots the treatment difference for trials against the size of the trial (or other specified variable[...]

R Colors in the RGB space

That graph displays in the 3D rgb space the named colors of R.[...]

Thermometers

?[...]

Correlation matrix circles

The circles with black background denote positive correlation coefficient, and the area of circles d[...]

multipanel geographic Lattice plot

Plot showing the geographic distribution of murder rates (1976) for the United States of America. [...]

Hershey Vector Fonts
Cyrillic Octal Codes

Hershey Vector Fonts Cyrillic Octal Codes[...]

Hershey Vector Fonts
Sample 'a'

Hershey Vector FontsSample 'a' for each available font[...]

Seasonal temperature

Seasonal temperature normals for Vancouver, BC, Canada, between 1975 and 2004, made with plot.seas.t[...]

Empirical Cumulative Distribution Function

Empirical Cumulative Distribution Function for a random sample of size 30 fo the standard normal dis[...]

Correlation Ellipses

The corrgram function produces a graphical display of a correlation matrix, called a correlogram. Th[...]

Perspective plot

The Obligatory Mathematical surface : Rotated sinc function. The right plot shows a nice shade effe[...]

Curves

Draws a curve corresponding to the given function or expression (in x) over the interval [from,to].[...]

Hershey Vector Fonts
More Special Escape Sequences

Hershey Vector Fonts More Special Escape Sequences[...]

Kernel density estimator
Illustration of the kernels

That graph nicely shows the construction of the kernel density estimator (R function density on a [...]

Distance Between Brownian Motions

An example showing how to fill between curves. [...]

Augmented Convex Hull

Plots 2D convex hulls or bivariate density contours, one for each group of data. Descriptive statist[...]

Perspective plot.
Simple DEM model

Visualizing a simple DEM model. Again the Maunga Whau Volcano.[...]

See wave

This is a graphical representation of a tree cricket calling song (Oecanthus pellucens). An oscillo[...]

Gantt Charts

Displays a Gantt chart with priority coloring[...]

Colored Dendrogram

This is a colored dendrogram. Each cluster have its color. Plus, the plot displays a factor below [...]

Hershey Vector Fonts
Special Escape Sequences

Hershey Vector FontsSpecial Escape Sequences[...]

Spinogram

Spinograms are an extension of histograms. References : Hummel, J. (1996), Linked bar charts: [...]

quiver episode 2

This is a sequel of plot 80 by B.D. Ripley and R. Hankin. Here quiver is much closer to its matlab d[...]

Scatter plot 3D

Plots a three dimensional (3D) point cloud[...]

teapot

The teapot is a common example of 3d graphics. This graph uses R to transform and display the teapo[...]

barplot filled with symbols

Produces a barplot where each piece of the barplot is filled with the number of symbols equal to the[...]

Fourfold Display

The fourfold display depicts frequencies by quarter circles, whose radius is proportional to `\sqrt{[...]

Bollinger Bands

This graph is a particular chart that practioners in Finance like to look at to complement othe[...]

Spie chart

Spie charts are useful to compare two partitions, the first one sets the angles of the slices and th[...]

US 2004 elections map

This plot is based on a plot that appeared in a New York Times flash-based editoral. Note that there[...]

Hershey Vector Fonts
ISO Latin-1 Escape Sequences

Hershey Vector FontsISO Latin-1 Escape Sequences[...]

Balloon plot

Plot a graphical matrix where each cell contains a dot whose size reflects the relative magnitude of[...]

plotmath
mathematical annontations

plotmath, mathematical annontations in graphics[...]

wireframe

3D wireframe for surfaces[...]

bar plot

Creates a bar plot with vertical or horizontal bars. Default gray colors are particularly well chose[...]

Coplot for Contingency Tables

cotabplot is a generic function for creating trellis-like coplots (conditional plots) for contingenc[...]

Frequency polygon

The frequency polygon is a density etsimator based on the histogram. It just consists of linking the[...]

Kernel density estimator in R˛
Perspective plot and contour plot

That plot displays the estimation of the density of a 2d sample. The density itself is computed wit[...]

Pie chart
January pie sales

We have already confessed to having these. This is just showing off X11 color names (and the examp[...]

Normal density surface

Normal density surface. Beside doing a 3D graph, we see here how mathematical annotations car be add[...]

Seasonal precipitation

Seasonal precipitation in Vancouver, BC, Canada, between 1975 and 2004, created from image.seas.sum.[...]

Notched boxplots

Boxplots: I couldn't resist the capability for filling the "box". The use of color seems like a us[...]

Conditionning plots

Conditioning plots[...]

cluster plot

Creates a bivariate plot visualizing a partition (clustering) of the data. All observation are repre[...]

disconnected sets for two-way classification

Find and plot disconnected sets and hence test for estimability in a two-way cell-means model with[...]

SOM representatives star plot

Star plot of the representatives of a batch Self Organizing map (SOM) applied on crabs data. Refere[...]

Conditionned Highest density regions

Plot of highest density regions for a conditional density estimate. Reference : Hyndman, R.J.,[...]

Lattice : confidence intervals

The function plotmeans{gplots} provides an easy option to plot means and confidence intervals for a [...]

hexbin pie

This plotting function can be used to visualize a categorical variable against a pair of continuous[...]

Hershey Vector Fonts
More Special Escape Sequences (2)

Hershey Vector Fonts More Special Escape Sequences (2)[...]

Mosaic plot

Mosaicplot graph represents a contingency table, each cell corresponding to a piece of the plot, wh[...]

Sun Flower Plot

Multiple points are plotted as “sunflowers” with multiple leaves (“petals”) such that overplotting i[...]

Hershey Vector Fonts
Symbol (incl. Greek) Escape Sequences

Hershey Vector FontsSymbol (incl. Greek) Escape Sequences[...]