Hi all,
I am using marginsplot to draw graphs with confidence intervals using the following syntax:
then i repeat it for x2 x3 x4 independent variables.
as I want to present all these plots in a comparable manner (visually), i used yscale option. however, when plot confidence intervals go outside the range specified in yscale the range on the plot is automatically adjusted accordingly.
e.g. if the Y variable values range between 2 and 4 (well within 1-5 range defined by yscale), but its confidence interval goes from 0 to 5, the Y variable scale on the plot is automaticaly adjusted to be 0 to 5, instead 1 to as I defined by yscale option
I do understand that this is probably a feature, but how i can get around it and plot all graphs on the same Y scale?
Increasing the range for all graphs is not an options, as the CI as sometimes extremely wide and some graphs will look like a straight line - e.g. if Y values are between 4 and 5 and CI values are between 0 and 10
Hope that I managed to describe the problem...
thank you in advance,
C.
I am using marginsplot to draw graphs with confidence intervals using the following syntax:
Code:
regress Y x1 c1 c2 c3 margins, at(x1 =(1 3 5 7 9 11 13 15 17)) marginsplot, scheme(s1manual) title("") ytitle("Y variable") xtitle("x1 variable") plotopts(msize(vtiny)) yscale(range(1 5)) ylabel (#1)
as I want to present all these plots in a comparable manner (visually), i used yscale option. however, when plot confidence intervals go outside the range specified in yscale the range on the plot is automatically adjusted accordingly.
e.g. if the Y variable values range between 2 and 4 (well within 1-5 range defined by yscale), but its confidence interval goes from 0 to 5, the Y variable scale on the plot is automaticaly adjusted to be 0 to 5, instead 1 to as I defined by yscale option
I do understand that this is probably a feature, but how i can get around it and plot all graphs on the same Y scale?
Increasing the range for all graphs is not an options, as the CI as sometimes extremely wide and some graphs will look like a straight line - e.g. if Y values are between 4 and 5 and CI values are between 0 and 10
Hope that I managed to describe the problem...
thank you in advance,
C.
Comment