IDPmisc (version 1.1.19)

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
# NOT RUN {
poster.plot(iris[,1],iris[,2],
            xlab="Sepal.Length", ylab="Sepal.Width")

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

## plotting lines
n <- 200
freq <- 1:n
y <- sin(freq/n*4*pi)*cos(freq/n*3*pi) + 0.1*rnorm(n)
poster.plot(y,col.fg="grey30",type="l")
# }

Run the code above in your browser using DataCamp Workspace