RでtimeSeries型をhistogramでplotする方法

How to plot histgram(bar) graph with timeSeries Type data.

R言語でtimeSeries型をヒストグラムでプロットする方法

set.seed(1)
x = ts(rnorm(20), frequency = 12, start = c(2002, 2))

        

ts.plot(x, gpars=list(xlab="year", ylab="random value", lwd=c(1:4), col=c("red")))

Resutls

histogram-plot
histogram-plot

datablogger.hatenablog.com