Description Usage Arguments Examples
A dark themed plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
df |
input data frame requires input, must have a date column named date |
column |
input data column name to plot |
col |
color for line, defaults to "white" |
n.decimals |
number of decimals to display, default is 0 |
refline |
include a reference line? default is FALSE |
refValue |
value for reference line, defaults to 0 |
shade |
shade under the line? default is FALSE |
shadeCol |
color for shading under line default is "dodgerblue" |
shadeAlpha |
alpha (transparency) for shading, default is 0.15 |
minCol |
color for minimum value |
maxCol |
color for maximum value |
firstCol |
color for first value |
lastCol |
color of last value |
Ndodge |
n.dodge parameter passed to scale_x_date(guide_axis(n.dodge = Ndodge)...) |
labelX |
function for labeling values, default is round, percent also available |
1 2 | darklyplot(mtg_rate,"rate",labelx="roundx",n.decimals=3)
darklyplot(mtg_rate,"rate",labelx="roundx",n.decimals=3,shade=TRUE,refline=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.