Learn R Programming

radiant.data (version 0.8.1)

plot.pivotr: Plot method for the pivotr function

Description

Plot method for the pivotr function

Usage

# S3 method for pivotr
plot(x, type = "dodge", perc = FALSE, flip = 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)

...

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
# NOT RUN {
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