Description Usage Arguments Details Value Author(s) References Examples
This is the main entry point for generating plots via the jjplot library. It is called by specifying a data frame on which to operate, along with a formula which defines aesthetic mappings along with a tree of statistic and geometry commands.
1 2 3 4 5 6 7 8 9 10 |
f |
A formula specifying mappings for x and y aesthetics, as well as the statistic and geometry commands. See details. |
data |
A data frame in whose scope the data expressions (i.e., |
log.x |
Use a logarithmic x scale. |
log.y |
Use a logarithmic y scale. |
xlab |
When specified, this overrides the default label for the x axis. |
ylab |
When specified, this overrides the default label for the y axis. |
expand |
A length-2 numeric vector. The axes are guaranteed to contain the range of the data plus a fraction of the data range specified by this parameter. The default simulates the default behavior of R's base plotting functions. |
The formula is specified by placing the optional y aesthetic to the left of the '~' and the x aesthetic as the first term (rightmost) of the formula. Layers are subsequently evaluated from right to left, separated by '+'. Parentheses are grouping operators for layers. Statistics can be applied using the ':' operator, with the statistic on the right hand side and operations depending on the statistic on the left hand side.
Full up-to-date documentation with examples can be found at: http://code.google.com/p/jjplot/wiki/Documentation
The function is called only for its side effect (namely, a plot!).
Jonathan Chang <jcone@princeton.edu> Eytan Bakshy <ebakshy@gmail.com>
http://code.google.com/p/jjplot/wiki/Documentation
1 2 3 4 5 | ## See the demos for example usages.
## Not run: demo(jjplot)
## See the following demo for speed tests.
## Not run: demo(jjplot.performance)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.