help marikmekkomarimekko v1.1 (GitHub)

marikmekko

: A Stata package for marikmekko charts.

Syntax

marikmekko y x [if] [in], label(varname) [ sort(varname) reverse colorp(str) colorn(str)
lcolor(str) lwidth(num) mlabsize(num) mlabangle(num) mlabgap(num)
mlabcolor(num) xline(num) yline(num) xlabel(str) xtitle(str) ytitle(str)
title(str) subtitle(str) note(str) ysize(num) xsize(num) scheme(str)
]

The options are described as follows:

marikmekko y x The command requires a numeric y variable and a numeric x variable.

label(variable) This variable defines the labels.

sort(variable) This variable defines the sort order.

reverse If this option is specified after sort(), the sort is reversed.

colorp(color) The fill color for positive boxes. It should be either a named color or an RGB value given in quotes, e.g. "255 255 0".

colorn(color) The fill color for negative boxes. It should be either a named color or an RGB value given in quotes, e.g. "255 255 0".

lcolor(color) Outline color of the boxes. The default is white.

lwidth(color) Outline width of the boxes. The default is 0.1.

mlabsize(value) Size of the labels. The default is 1.6.

mlabangle(value) Angle of the labels. The default is 0 or horizontal.

mlabcolor(value) Angle of the labels. The default is scheme default.

mlabgap(value) Gap of the labels from the boxes. The default is 0.5.

xlabel ylabel These are standard twoway graph options.

xtitle, ytitle, xsize, ysize These are standard twoway graph options.

xline(), yline() These are standard twoway graph options.

title, subtitle, note, name These are standard twoway graph options.

scheme(string) Load the custom scheme. Above options can be used to fine tune individual elements.

Dependencies

The palette package (Jann 2018, 2022) is required:

ssc install palettes, replace
ssc install colrspace, replace

Examples

See GitHub.

Package details

Version : marimekko v1.1
This release : 02 Dec 2023
First release: 28 Jun 2022
Repository : GitHub
Keywords : Stata, graph, marimekko
License : MIT

Author : Asjad Naqvi
E-mail : asjadnaqvi@gmail.com
Twitter : @AsjadNaqvi

References

Jann, B. (2018). Color palettes for Stata graphics. The Stata Journal 18(4): 765-785.

Jann, B. (2022). Color palettes for Stata graphics: An update. University of Bern Social Sciences Working Papers No. 43.

Other visualization packages

arcplot, alluvial, bimap, bumparea, bumpline, circlebar, circlepack, clipgeo, delaunay, joyplot,
marimekko, sankey, schemepack, spider, streamplot, sunburst, treecluster, treemap