Learn R Programming

radiant.data (version 0.6.0)

plot.pivotr: Plot method for the pivotr function

Description

Plot method for the pivotr function

Usage

"plot"(x, type = "dodge", perc = FALSE, flip = FALSE, shiny = FALSE, custom = FALSE, ...)

Arguments

x
Return value from pivotr
type
Plot type to use ("fill" or "dodge" (default))
perc
Use percentage on the y-axis
flip
Flip the axes in a plot (FALSE or TRUE)
shiny
Did the function call originate inside a shiny app
custom
Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This opion can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and http://docs.ggplot2.org/ for options.
...
further arguments passed to or from other methods

Details

See http://radiant-rstats.github.io/docs/data/pivotr for an example in Radiant

See Also

pivotr to generate summaries

summary.pivotr to show summaries

Examples

Run this code
pivotr("diamonds", cvars = "cut") %>% plot
pivotr("diamonds", cvars = c("cut","clarity")) %>% plot
pivotr("diamonds", cvars = c("cut","clarity","color")) %>% plot

Run the code above in your browser using DataLab