Usage
#default settings:
spark_init(v, cw=100, ch=50, top_padding=5, bottom_padding=5, left_padding=5,
right_padding=5, showIQR=TRUE, showVals=rep(TRUE, 3),
colVals=c("#f00", "#0f0", "#00f"), fillColor="#ccc", pointWidth=1.5,
lineWidth=1, lineCol="#000", shadow=FALSE, shadowCol="#ccc",
barCol=c("#00f", "#f00", "#000"), barWidth=3, barSpacing=1,
boxOutCol=c("#f00","#f00"), boxMedCol="#000",boxShowOut=TRUE,
boxCol=c("#fff","#00f","#00f"), type)
Arguments
ch
height of the sparkline
top_padding
distance between the bar with the highest value to the boarder
bottom_padding
distance between the bar with the lowest value to the boarder
left_padding
distance between the left boarder and the first bar
right_padding
distance between the last bar and the right boarder
showIQR
a logical value indicating whether the IQR (interquartile range) box should be drawn or not
showVals
a logical vector of length 3 indicating which values should be shown: highest, lowest, last
colVals
a vector of length 3 defining the used colors for the values above
fillColor
the fill color for the IQR box
pointWidth
the width of the points
lineWidth
the width of the line
lineCol
the color of the line
shadow
fills the area under the line
shadowCol
color of the shaded area
barCol
a vector of length 3 defining the colors for positive, negative or values of zero
barWidth
the width of each bar
barSpacing
the space between bars
boxOutCol
color of the outliers
boxMedCol
color of the median
boxShowOut
a logical value whether the outliers should be drawn or not
boxCol
a vector of length 3 defining colors for the box: fill color, box color, end of the whisker
type
either "line", "bar", or "box"