random_ggplot: A Random ggplot

Description Usage Arguments Value Examples

View source: R/Plot.R

Description

This function returns a ggplot object, which can be passed to renderPlot and plotOutput

Usage

1
2
3
4
5
random_ggplot(
  type = c("random", "point", "bar", "boxplot", "col", "tile", "line", "bin2d",
    "contour", "density", "density_2d", "dotplot", "hex", "freqpoly", "histogram",
    "ribbon", "raster", "tile", "violin")
)

Arguments

type

type of the geom. Can be any of "random", "point", "bar", "boxplot","col", "tile", "line", "bin2d", "contour", "density", "density_2d", "dotplot", "hex", "freqpoly", "histogram", "ribbon", "raster", "tile", "violin" and defines the geom of the ggplot. Default is "random", and chooses a random geom for you.

Value

a ggplot

Examples

1
2
random_ggplot("point")
random_ggplot("histogram")

Example output



shinipsum documentation built on May 1, 2020, 1:07 a.m.