将 y 轴子变量分类为 Before、After 和 Post,而不是 After、Before 和 Post

问题描述 投票:0回答:0

我正在尝试在 Stata 中制作一个箱线图,我希望子变量在变量“Watering_event”下按以下顺序排列:之前、之后、之后。

数据集中的数据看起来像这样

Watering_event
Before
After
Post

这是命令和图片它是如何吸引人的

graph box photosynthesis, over(watering_event, sort(watering_event)) title("Watered Plants-Main Experiment") xsize(10) ysize(10)

[enter image description here](https://i.stack.imgur.com/fPBhE.png)

plot stata box
© www.soinside.com 2019 - 2024. All rights reserved.