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, ..., axislocation = c(0.1, 0.1), axis.gp = gpar(col
= "black"), background.color = "grey90")
Arguments
- x
object to plot
- ...
(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
Examples
Run this codescatmat <- 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