Learn R Programming

plotwidgets (version 0.5.1)

plotwidgetGallery: A showcase of all plot types available in plotwidgets

Description

A showcase of all plot types available in plotwidgets

Usage

plotwidgetGallery(theme = "default", pal = NULL, ...)

Arguments

theme

sets both the palette and a suitable bakckground (e.g. dark for "neon")

pal

color palette to use (a character vector with colors)

...

all subsequent parameters will be passed to the plotWidget() function.

Value

Invisibly returns the example data used to generate the plots

Details

plotwidgetGallery() simply draws all available plot widgets on a single plot.

Gallery example

Examples

Run this code
# NOT RUN {
plotwidgetGallery()
## automatically set black bg
plotwidgetGallery(theme="neon") 
## yuck, ugly:
plotwidgetGallery(pal=c("red", "#FF9900", "blue", "green", "cyan", "yellow"))
## much better:
plotwidgetGallery(pal=plotPals("pastel", alpha=0.8))
# }

Run the code above in your browser using DataLab