rAmCharts - amBullet
Parameters
- value: a numeric
- min: a numeric, minimum value allowed.
- max: a numeric, maximum value allowed.
- val_color: a character, color of the bar value, in hexadecimal.
- limit: a numeric, target value.
- limit_color: a character, color of the line limit, in hexadecimal.
- rates: a data frame with 4 columns : name (character), min (numeric), max (numeric), and color (character, color in hexadecimal).
- steps: a boolean.
- label: a character, label of the bullet.
- horiz: a boolean, TRUE (default) for an horizontal bullet chart, FALSE for a vertical one.
- …: other parameters called in amOptions.
Reference example
amBullet(value = 65)
Remove steps from backgroud
amBullet(value = 65, steps = FALSE)
Tune the colors
amBullet(value = 65, val_color = "purple", limit_color = "#3c8dbc")
Change orientation
amBullet(value = 65, horiz = FALSE)
Add label
amBullet(value = 65, label = "Evaluation")
Change mon and max
amBullet(value = 65, min = 20, max = 90)
amOptions
export
amBullet(value = 65, export = TRUE)
#or
amBullet(value = 65) %>>%
amOptions(export = TRUE)
theme
amBullet(value = 65, theme = "patterns")
#or
amBullet(value = 65) %>>%
amOptions(theme = "patterns")