dcscatter: dcscatter adds a scatter plot to the dashboard

Description Usage Arguments Examples

View source: R/dcscatter.R

Description

dcscatter generates a scatter plot

Usage

1
2
3
4
dcscatter(x, y, title = paste(x, " * ", y), spansize = 4,
  width = dashboard.env$outerwidth * spansize/12, height = 250,
  symbolesize = 2, symboletype = "circle", clipaddingsize = 10,
  hlightedsize = 4)

Arguments

x

column name of a single numeric in data frame data for drawing a scatter plot

y

column name of a single numeric in data frame data for drawing a scatter plot

title

character for the title of the generated scatter plot

spansize

integer between 1 to 12 for the width of the element in the web page

width

integer for the width (in pixels) of the element in the web page

height

integer for the height (in pixels) of the element in the web page

symbolesize

integer for adjusting the symbole size

symboletype

character for defining the symbole type

clipaddingsize

integer for adjusting the clipadding size

hlightedsize

integer for adjusting the highlighted size

Examples

1
2
3
4
5
6
7
dashboard_open(data=iris) # other options: pathoutput=getwd() ...
dcpiechart(x=names(iris)[5])
dcscatter(x=names(iris)[1], y=names(iris)[3] )
dcbarchart(x=names(iris)[1] , gap=75)
dcpiechart(x=names(iris)[2])
dctable(index=names(iris)[5])
dashboard_launch(browse = FALSE) # Just generates files and server is not launched

dashboard documentation built on May 1, 2019, 10:52 p.m.