amMekko: Plotting mekko chart (quali vs quali)

Description Usage Arguments References See Also Examples

View source: R/chart_amMekko.R

Description

amMekko computes a mekko chart of the given values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
amMekko(
  x,
  y,
  data,
  xlab = "",
  ylab = "",
  groups_color = NULL,
  horiz = FALSE,
  show_values = FALSE,
  ...
)

Arguments

x

character, column name for x-axis.

y

character, column name for y-axis.

data

data.frame, dataframe with values to display. See data_mekko

xlab

character, label for x-axis.

ylab

character, label for y-axis.

groups_color

character vector of colors in hexadecimal, same length as the number of y modalities.

horiz

logical, TRUE for an horizontal chart, FALSE for a vertical one.

show_values

logical, TRUE to display values.

...

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
data(data_mekko)
amMekko(x = "var1", y = "var2", data = data_mekko)


# Other examples available which can be time consuming depending on your configuration.
library(pipeR)
 
# Horizontal
amMekko(x = "var1", y = "var2", data = data_mekko, horiz = TRUE)
 
# Display values
amMekko(x = "var1", y = "var2", data = data_mekko, show_values = TRUE)

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

Related to amMekko in rAmCharts...