dcboxplot: dcboxplot adds a box plot to the dashboard

Description Usage Arguments Examples

View source: R/dcboxplot.R

Description

dcboxplot generates a box plot

Usage

1
2
dcboxplot(x, val, title = paste(x, "boxplot: ", val), spansize = 4,
  width = dashboard.env$outerwidth * spansize/12, height = 250)

Arguments

x

column name of categorical variable of data frame data for drawing a box plot. One box is drawed for each distinct value of x

val

column name of a single numerical variable in the data frame data for computing the size of the box

title

character for the title of the generated box plot

spansize

integer between 1 to 12 for the width of the element in the row

width

integer for the width in pixel of the element in the web page

height

integer for the height in pixel of the element 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])
dcboxplot(x=names(iris)[5], val=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. Server is not launched

Example output

[1] "setting ok"
Files have been generated in this folder:  /work/tmp/tmp/RtmpK1AwdE/dashboard_1554897113

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