Learn R Programming

IDPmisc (version 0.3.1)

poster.plot: Convenient xyplot with Differently Colored Margin and Plot Region

Description

Convenient xyplot with Colored Background. Background of margin may be chosen independently from background in plot region.

Usage

poster.plot(x, y = NULL, type = "p", 
            col = col.fg, col.axis = col.fg, col.lab = col.fg,  
            col.fg = "blue", col.bg = "lavender", col.box = "cornsilk",
            xlim = NULL, ylim = NULL, xlab = "", ylab = "",
            main = "", cex = 1.2, axes = TRUE, ...)

Arguments

x
A vector, data.frame or matrix. When x is data.frame or matrix only first two columns are used.
y
A vector or NULL
type
See Argument type in par
col
Color of points. If length(col) > 1, colors are recycled.
col.axis
Color of axis.
col.lab
Color of labels on axis.
col.fg
Color of foreground.
col.bg
Color of background outside of figure.
col.box
Color of background inside of figure
xlim
Limits of x-axis.
ylim
Limits of y-axis
xlab
Label of x-axis
ylab
Label of y-axis
main
Titel.
cex
Size of characters.
axes
Should axis be plotted?
...
Additional arguments to par.

Details

Side effect: par options will remain changed so that other graphic elements can be added comfortably.

Examples

Run this code
poster.plot(iris[,1],iris[,2], col=c("red","black"),
            xlab="Sepal.Length", ylab="Sepal.Width")

poster.plot(iris[,1],col="red",ylab="Sepal.Length")

poster.plot(iris[,c(1,3)],col.fg="violet",
            xlab="Sepal.Length",ylab="Petal.Length")

Run the code above in your browser using DataLab