amBullet: Plotting bullet chart using rAmCharts

View source: R/chart_amBullet.R

amBulletR Documentation

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.

References

See online documentation https://datastorm-open.github.io/introduction_ramcharts/ and amChartsAPI

See Also

amOptions, amBarplot, amBoxplot, amHist, amPie, amPlot, amTimeSeries, amStockMultiSet, amBullet, amRadar, amWind, amFunnel, amAngularGauge, amSolidGauge, amMekko, amCandlestick, amFloatingBar, amOHLC, amWaterfall

Examples

amBullet(value = 65)

## Not run: 
# 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)

## End(Not run)



DataKnowledge/rAmCharts documentation built on Oct. 3, 2022, 5:42 a.m.