This package introduces:

  • wideplot() graphics for exploring the structure of a dataset through a grid of variables and graphic types.
  • longplot() graphics, which present the entire catalog of available graphics for representing one particular variable or a limited selection of variables using a grid of graphic types and variations on these types.
  • matrixplot() graphics, a generalization of a matrix plot in the sense that the graphic that is replicated in each cell of the matrix can be selected from the catalogue of bivariate graphics.
  • plotup() function, which complements the previous two functions in that it presents a particular graphic for a specific variable or a limited number of variables of a dataset.

Future work will include the ability to draw longplot() and plotup() graphics from a selection of a wider number and combinations of types of variables within a dataset.


You can install the released version of brinton from CRAN with:


And then load the functions included in the package:


When a new dataset comes up, R users use to call the str() function that describes textually the main characteristics of this dataset. The new wideplot() function does the same but graphically. As an example, just run:


This function includes the argument dataclass that sets the types of variables to be included in the grid as well as the order in which they are listed. As an example, the following line will plot only the numeric variables included in the iris dataset:

wideplot(infert, dataclass = c("numeric"))

Although, the wideplot() function shows only a small set of the graphics suitable for each type of data. If the user wants to see all the available graphics for some specific variable included in the dataset, then the longplot() is useful. As an example, just run:

longplot(infert, "pooled.stratum")

Any of the graphics presented in the longplot() output can also be presented. If one wants to compare the output of some other specific graphics one can, for instance, run:

  dataclass = c("numeric"),
  numeric = c("point graph", "binned point graph", "binned heatmap"),
  label = TRUE

Sometimes, specially with character variables, there is not enought space for the graphic area, and the user may want to increase the width of the columns in the matrix. The user can then modify the defalut value of the ncol argument:

  dataclass = c("numeric"),
  numeric = c("point graph", "binned point graph", "binned heatmap"),
  label = TRUE,
  ncol = 3

While the wideplot function displays a grid of univariate graphics, if a matrix of bivariate graphics is intended for variables of one particular type, the matrixplot() function is useful. Type for instance the following code:

matrixplot(esoph, dataclass = "numeric", diagram = "bw contour plot with data points")

Same thing if the desired matrix has to include graphics from variables of two different types (note that the graphic type has to be compatible):

matrixplot(esoph, dataclass = c("numeric", "factor"), diagram = "box plot")

If the user is interested in one particular graphic then the function plotup() is useful.

plotup(infert, "pooled.stratum", "color binned stripe graph")

Or, as example of a graphic that requires more than one input variable:

plotup(faithful, c("waiting", "eruptions"), "color scatter plot")

The default output of the plotup() function is a c("gg", "ggplot") object but the output argument allows, as a side effect, to write and present the graphic in a html file or to print the ggplot2 function in the console:

plotup(infert, "pooled.stratum", "color binned stripe graph", output = "html")
plotup(faithful, c("waiting", "eruptions"), "color scatter plot", output = "html")