質問

This is perhaps a very simple question but the help file doesn't seem to suggest anything helpful.

I am using googleVis to plot some data, however the absolute level is quite high, so I would like to set a minimum value for the y-axis for an gvisAnnotatedTimeLine function.

The below is an example...

df <- Sys.time()-100:1
df <- as.data.frame(df)
df$k <- 9000:9099
plot(gvisAnnotatedTimeLine(df, datevar="df",numvar="k", options=list(min=8000)))

The resultant timeline has the y-axis staring from zero, but I was hoping for it to start from 8000 or any arbitrary number I choose.

役に立ちましたか?

解決

This should fix the issues...

df <- Sys.time()-100:1
df <- as.data.frame(df)
df$k <- 9000:9099
plot(gvisAnnotatedTimeLine(df, datevar="df",numvar="k", options=list(scaleType='maximized')))
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top