dcrowchart: dcrowchart adds a row chart to the dashboard

Description Usage Arguments Examples

View source: R/dcrowchart.R

Description

dcrowchart generates a horizontal bar chart

Usage

1
2
dcrowchart(x, title = paste(x, "row chart"), spansize = 4,
  width = dashboard.env$outerwidth * spansize/12, height = 250)

Arguments

x

column name of data frame data for drawing a row chart

title

character for the title of the generated row chart

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 chart in the web page

height

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

Examples

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

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