1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

メモ 日時項目の取り扱い

Last updated at Posted at 2017-03-07

以下のような日時項目をRで扱う場合

Nitiji
"2016-10-13 12:14:20.8830000"

as.POSIXct(Nitiji, format = "%Y-%m-%d %H:%M:%OS")

plot

`
g <- ggplot(
g, # 作成したデータフレームを指定
aes (
x = as.POSIXct(seirituNitiji, format = "%Y-%m-%d %H:%M:%OS"),
y = seirituSP
)
)

g <- g + geom_line(
colour = "magenta", # 線の色
linetype = 2, # 線のタイプ
size = 0.5 # 線の太さ
)

g <- g + xlab("x axis") # x座標
g <- g + ylab("y axis") # y座標
g <- g + ggtitle("Sample") # グラフタイトル
g <- g + theme_bw()

plot(g)
`

image

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?