Hi all,
I may be approaching with a very simple problem but I can't figure out the cause. Here is the demonstration of the problem using the 'auto' dataset:
The marginsplot above comes with legends at 3'o clock position with one column or 3 rows (rep78 = 2, 3, 5). Say I want the legends at 6'o clock postion with 3 columns or one row; so the codes I used:
This does bring the legend position at 6'0 clock position but the legends still remain in one column. Any idea why is this? Why the position option is respected but the row/column option is ignored? I tried in vein bringing the legend option as:
But it says option legend() not allowed . Any idea?
StataNow version: version 18.5
OS: Mac
Thanks.
Roman
I may be approaching with a very simple problem but I can't figure out the cause. Here is the demonstration of the problem using the 'auto' dataset:
Code:
sysuse auto, clear margins foreign, at(headroom=(2 3 5) rep78=(2 3 5)) marginsplot, by(foreign)
Code:
marginsplot, by(foreign) byopts(legend(pos(6) col(3)))
Code:
marginsplot, by(foreign, legend(pos(6) col(3)))
StataNow version: version 18.5
OS: Mac
Thanks.
Roman
Comment