Learn R Programming

DescribeDisplay (version 0.2.11)

plot.ddplot: Plot a dd plot Convenient method to draw a single panel.

Description

This is mainly used for bug testing so that you can pull out a single panel quickly and easily.

Usage

# S3 method for ddplot
plot(
  x,
  y = NULL,
  ...,
  axislocation = c(0.1, 0.1),
  axis.gp = gpar(col = "black"),
  background.color = "grey90"
)

Arguments

x

object to plot

y

NULL to satisfy generic functions and methods rules

...

(not used)

axislocation

location of axes (as x and y position in npc coordinates, ie. between 0 and 1)

axis.gp

frame grob containing all panels, note that this does not contain the title or border

background.color

color of in the background of the plot

Author

Hadley Wickham [email protected]

Examples

Run this code
scatmat <- dd_example("scatmat")
plot(scatmat)
plot(scatmat$plots[[1]])
plot(scatmat$plots[[3]])
plot(scatmat$plots[[4]])

Run the code above in your browser using DataLab