Learn R Programming

rAmCharts (version 2.0.2)

amBullet: Plotting bullet chart using rAmCharts

Description

amBullet computes a bullet chart of the given value.

Usage

amBullet(value, min = 0, max = 100, val_color = "#000000", limit = 85, limit_color = "#000000", steps = TRUE, label = "", horiz = TRUE, rates, ...)

Arguments

value
numeric, value to display.
min
numeric, minimum value allowed.
max
numeric, maximum value allowed.
val_color
character, color of the bar value, in hexadecimal.
limit
numeric, target value.
limit_color
character, color of the target line.
steps
logical, default set to TRUE.
label
character, label of the bullet.
horiz
logical, TRUE (default) for an horizontal bullet chart, FALSE for a vertical one.
rates
data.frame with 4 columns: name (character), min (numeric), max (numeric), and color (character, color in hexadecimal).
...
see amOptions for more options.

See Also

Examples

Run this code
amBullet(value = 65)


# Other examples available which can be time consuming depending on your configuration.

# Remove steps for background
amBullet(value = 65, steps = FALSE)

# Tune the colors with name or HTML code
amBullet(value = 65, val_color = "purple", limit_color = "#3c8dbc")

# Change the orientation
amBullet(value = 65, steps = FALSE, horiz = FALSE)

# Add text
amBullet(value = 65, label = "Evaluation")

# Change min and max values
amBullet(value = 65, min = 20, max = 90)


Run the code above in your browser using DataLab