4
シーケンスを定義せずにggplotでブレークステップサイズを設定する方法はありますか?たとえば:シーケンスを定義せずに軸ブレークを変更する - ggplot
x <- 1:10
y <- 1:10
df <- data.frame(x, y)
# Plot with auto scale
ggplot(df, aes(x,y)) + geom_point()
# Plot with breaks defined by sequence
ggplot(df, aes(x,y)) + geom_point() +
scale_y_continuous(breaks = seq(0,10,1))
# Plot with automatic sequence for breaks
ggplot(df, aes(x,y)) + geom_point() +
scale_y_continuous(breaks = seq(min(df$y),max(df$y),1))
# Does this exist?
ggplot(df, aes(x,y)) + geom_point() +
scale_y_continuous(break_step = 1)
あなたは、私が怠けているのですが、私がエラーバーの追加に私のseq
のmin
とmax
制限を変更しなければならなかったいくつかの機会があったと言うことがあります。だから、私はちょうど言ってみたい... xのブレークサイズを使って、自動的なスケールの制限がある。
:)私はそれが何かを壊してはならないと思いますが、あなたは確認することはできません。ありがとう – Pete900