Hi. I have a working code that manifests differently for what seems to me very similar conditions. PLease see below: I have a data set that has estimates from a couple of models (one assessing within the other one between subjects...) I initially had a chart that plotted the estimates from both models in one plot: data have; input measure $ 1-19 model $ Estimate ; cards; First, Measure b_gfr 3.48 First, Measure d_gfr_10 3.56 Second, Measure b_gfr 1.38 Second, Measure d_gfr_10 2.22 Third, Measure b_gfr 1.40 Third, Measure d_gfr_10 2.03 Fourth, Measure b_gfr 1.38 Fourth, Measure d_gfr_10 3.28 Fifth, Measure b_gfr 0.85 Fifth, Measure d_gfr_10 1.51 Sixth, Measure b_gfr 0.07 Sixth, Measure d_gfr_10 0.38 Seventh, Measure b_gfr 0.63 Seventh, Measure d_gfr_10 0.93 Eighth, Measure b_gfr 2.99 Eighth, Measure d_gfr_10 5.17 ; filename models "&plot_path.\models_both.jpeg"; goptions reset = all device = jpeg gsfname = models gsfmode = replace ; options orientation=landscape nodate nonumber ; pattern1 color = graycc; pattern2 color = gray; axis1 label = none minor = none order = (0.0 to 7.0 by 1) value = none major = none c = white; axis2 label = none value = none; axis3 split = "," label = none value = (f = "Arial/Bold" h = 1.2 ) c = black; legend label = none position = (inside top left) mode = protect across = 1 value = (h = 1.7 f = "Arial" "Between-Patient Models" "Within-Patient Models"); proc gchart data = have ; vbar model/ sumvar = estimate NoZero space = 0 group = measure subgroup = model legend = legend type = mean iframe = black raxis = axis1 maxis = axis2 gaxis = axis3 coutline = black ; run;quit; It turns out the request is now for separate plots. Very easy to do, I just split the code and restrict the data to one mode at the time, using a where statement. filename models "&plot_path.\models_cross.jpeg"; goptions device = jpeg gsfname = models gsfmode = replace ; options orientation=landscape nodate nonumber ; axis1 label = none minor = none order = (0 to 7 by 1) value = none major = none c = white; axis2 label = none value = none; axis3 split = "," label = none value = (f = "Arial/Bold" h = 1.2 ) c = black; pattern color = grayee; legend label = none position = (inside top left) mode = protect across = 1 value = (h = 1.7 f = "Arial" "Between-Patient Models"); proc gchart data = have ;where model = 'b_gfr'; vbar model/ sumvar = estimate NoZero space = 0 group = measure legend = legend type = mean iframe = black raxis = axis1 maxis = axis2 gaxis = axis3 coutline = black ; run;quit; filename models "&plot_path.\models_within.jpeg"; goptions device = jpeg gsfname = models gsfmode = replace ; options orientation=landscape nodate nonumber ; axis1 label = none minor = none order = (0 to 7 by 1) value = none major = none c = white; axis2 label = none value = none; axis3 split = "," label = none value = (f = "Arial/Bold" h = 1.2 ) c = black; pattern color = gray; legend label = none position = (inside top left) mode = protect across = 1 value = (h = 1.7 f = "Arial" "Within-Patient Models"); proc gchart data = have ;where model = 'd_gfr_10'; vbar model/ sumvar = estimate NoZero space = 0 group = measure legend = legend type = mean iframe = black raxis = axis1 maxis = axis2 gaxis = axis3 coutline = black ; run;quit; OK, so my problem is that one plot 'fills' the graphic area, the other one seems to be smaller and I can't figure out why. Any help would be highly appreciated. Thank you! Anca.
... View more