楼主: 幻想狂
15566 11

[作图问题求助] stata做折线图,每个图的拐点处都有不同的标记 [推广有奖]

11
wfx21 发表于 2024-3-15 12:02:25 |只看作者 |坛友微信交流群
但是我在作图过程之中help line发现默认设置是line将忽略关于标记点marker的所有设置不是吗?也就是说二楼的设置是无效的?

Oneway equivalency of line and scatter

    line is similar to scatter, the differences being that by default the marker symbols are
    not displayed and the points are connected:

        Default msymbol() option:  msymbol(none ...)

        Default connect() option:  connect(l ...)

    Thus you get the same results typing

        . line yvar xvar

    as typing

        . scatter yvar xvar, msymbol(none) connect(l)

    You can use scatter in place of line, but you may not use line in place of scatter.
    Typing

        . line yvar xvar, msymbol(O) connect(none)

    will not achieve the same results as

        . scatter yvar xvar

    because line, while it allows you to specify the marker_option msymbol(), ignores its
    setting.

使用道具

12
wfx21 发表于 2024-3-15 12:08:44 |只看作者 |坛友微信交流群
您好, 今天遇到了同样的问题,help line对stata line作图规则进行了解答。本人使用stata版本为16.0,规则显示line将忽略所有关于标记点marker的风格设置,这也解释了为什么很多操作都是无效的。我不知道楼上为什么说能够在stata作图中更改line标记点的样式,但是我觉得受stata版本限制,本版stata是没有办法显示出marker点来的。

联想截图_20240315120436.png (35.44 KB)

联想截图_20240315120436.png

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 19:11