amMekko: Plotting mekko chart (quali vs quali)

View source: R/chart_amMekko.R

amMekkoR Documentation

Plotting mekko chart (quali vs quali)

Description

amMekko computes a mekko chart of the given values.

Usage

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

data(data_mekko)
amMekko(x = "var1", y = "var2", data = data_mekko)

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

## End(Not run)



datastorm-open/rAmCharts documentation built on Oct. 4, 2022, 7:07 p.m.