問題タブ [reprex]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - ggplot で視覚化すると、reprex を使用する場合と reprex を使用しない場合で異なる出力が得られる
ggplot にセグメントを追加しようとしています。ただし、追加するalpha
とセグメントが消えます。これは多くの SO 投稿で文書化されている既知の動作ですが、私は特に奇妙なことを経験してreprex()
います。
例reprex()
reprex パッケージ(v2.0.0)により 2021-08-02 に作成
なしでコードを実行する場合の例reprex
上記と同じコードで、出力は次のとおりです。
p_with_alpha
外部で実行されているときにセグメントがないのはなぜreprex()
ですか?
セッション情報
これについて何か説明はありますか?