amBullet: Plotting bullet chart using rAmCharts

Description Usage Arguments References See Also Examples

View source: R/chart_amBullet.R

Description

amBullet computes a bullet chart of the given value.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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)

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.