0
これは私が使っていたコードである -ggplotのgeom_col時系列データをかわすません
g.volume <- ggplot (time_series, aes(x=quotedate, y=cv)) +
geom_col(position='dodge',fill='steelblue1', size=.8) +
geom_col(aes(x=quotedate, y=pv) ,position='dodge', fill='hotpink1', size=.8) +
labs(x = "", y = "Call/Put Volume") + theme_bw() +
theme(axis.ticks.x=element_blank(), axis.text.x=element_blank()) +
theme(panel.grid.major = element_line(colour = "grey", size=.5,linetype = 'dashed'))
出力は数値的に正しいですが、2つのY変数が積層され、並んでかわしありません。ウェブ上の多くの例は、時系列データ(X軸)に直接関係するものではなく、少数のカテゴリに関連しています。データを回転しようとすると、うんざりして動作しませんでした。
してください、[編集]あなたの質問をプロットし、あなたの問題を再現するためのデータを提供します。 [mcve]を参照してください。 – Uwe