Description Usage Arguments Details Author(s) See Also Examples
Adds a transparent foreground and gridlines to plots to create the illusion of a background.
1 2 3 4 5 | addbg(
color = heat.colors(40, alpha = 0.15)[30],
linecolor = "grey75",
addgridlines = TRUE
)
|
color |
Background color. The default is a yellow from '
|
linecolor |
Color used for gridlines. Default is "grey75" |
addgridlines |
Add gridlines? Default is TRUE |
The background and gridlines can be slightly
more professional looking and easier to read. The color can be customized,
the default is heat.colors(40, alpha=.15)[30]
.
This is something that's nice if you're too pressed for time to do it using ggplot.
Uses the info in par("usr")
to draw a rectangle that is the same
size as your current plot area. Sometimes the transparency doesn't show
up well when copied into other applications, so use at your own risk.
Gene Leynes
bgfun
,
plot100colors
to see color examples
ggplot
Way better
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.