0
変数 "my.data $ V2"(y軸)と日付 "my.data $ V3"(x軸)からなる2つのデータフレーム列をプロットしたい)は文字列です。ベースプロットとggplotのアプローチを試してみましたが、うまくいきませんでした。R - プロット値と文字の日付
plot(my.data$V2,my.data$V3,xaxt="n",ylab="Volum") #don't plot the x axis
axis.POSIXct(1, at=seq(my.data$V3[1], my.data$V3[2], by="month"), format="%b") #label the x axis by months
require(ggplot2)
theme_set(theme_bw()) # Change the theme to my preference
ggplot(aes(x = my.data$V3, y = my.data$V2), data = my.data) + geom_point()
Hereデータセットを見つけることができます。 負荷( "data.Rdata")を使用してファイルをロードし
は解決:
plot(strptime(my.data$V3,"%d/%m/%YT%H:%M:%S",tz="GMT"),my.data$V2, xlab="Time", ylab="Volum")
、我々は解決策は、あなたのために働いていることを示すために受け入れ答えを持っています。 –