schonlau / hammock-stata

Hammock Plot - Stata implementation
Other
1 stars 0 forks source link

colorlist does not allow for colors specified inside a string #2

Closed schonlau closed 1 year ago

schonlau commented 1 year ago

Stata allows specifying colors by name, modified by intensity (red%50 or red*.5) . Stata allows allows rgb and other values that are specified inside a string, such as "173 216 230" (this is an color specified in RGB). See help colorstyle

However, hammock speaker1 speaker2 type, label hivar(type) hival(1 2) colorlist(red "173 216 230")

hammock does not parse those color strings correctly.

schonlau commented 1 year ago

v1.29 solved this using compound quotes :

hammock speaker1 speaker2 type, label hivar(type) hival(1 2) colorlist(`" red "173 216 230" "')