
The extreme values are just scatterplot dots.Ĭode to make this follows, data here are fake. To get around this, I included an offset value that could be modified to shift these lines up and down so they lined up with the boxes. One problem is the placement of the horizontal lines on and above/below the box itself, since the “―” ascii character isn’t perfectly in the middle of the vertical space that is used to render it. I cant run it in a loop where the xscale might change. However, the width is super non-systematized. Case 1) is a bit frustrating, as Ive been using xline (c, width (20) color (gray)), where c is the midpoint between my two xlines (at x a and x b respectively. msize ( vsmall ) legend ( off ) xline ( 140, III 19 Istyle ( foreground ). where I have one xline and I just want to shade between that line and the y-axis. The “box” are just really wide pcspike lines with overlaying horizontal bars as floating text boxes to indicate the bottom, median, and top of the box. lcolor(colorstyle) color and opacity of line Options yline(linearg), xline(linearg), and tline(time linearg) specify the y, x, and t (time) values where lines should be added to the plot. STATA ( continued ) 11 replace D 1 if x > 140 12 gen x2 x x 13 gen x3 x. I used “input” at the top of a do file to load these data. (6-7) “bar1” and “bar2” – the low and upper end of the bars, and.(3-5) “boxlow” “boxmid” and “boxhigh” – the lower, mid, and upper bounds of the box, 1 Add vertical dotted line to a graph, 13:53 Hi, I have the following plot and I would like to add a vertical dotted line between two countries (JP and CH) and the fitted line.(2) “group” – an indicator for group 1 or 2,.(1) “row” – rows 1-8 - the “A-D” labels on the x axis are offset at 1.5, 3.5, 5.5, and 7.5, respectively,.It took me a few rounds of data abstraction to get all of the data.

I used the excellent WebPlotDigitizer to abstract the points in these figure. I was asked to abstract a boxplot from an old paper and re-render it in Stata. If you are trying to make a typical boxplot in Stata, go read up on the –graph box– command as described on this post. by(var) xline(xint) yline(yint) text(y x annotation) with Stata. See aspects of your data that werent visible before. Stata has some handy built-in features to make boxplots. Adjust color transparency in almost every element of a Stata graph.
