0
我想繪製一組時間序列與ggplot,要打印在B5紙上。刻度和文本 - facet_grid ggplot
能夠做出這樣的情節:
qplot(trade.date, value, data = meltreg2, geom='line', group = variable) +
facet_grid(variable ~ ., scale = 'free_y') +
scale_x_date(expand=c(0,0), name='') +
opts(strip.text.y = theme_blank(), strip.background = theme_blank(), panel.background =
theme_rect(), panel.grid.major=theme_blank(), panel.grid.minor=theme_blank(), axis.title.x =
theme_blank(), axis.title.y = theme_blank(), panel.margin = unit(0.5, 'line')
)
,但有什麼辦法,我可以得到所有的圖表(三幅)刻度和文字?
我該如何保存劇情以最適合B5(風景)頁面?
我想在所有x軸上有刻度線和文字,而不是用theme_blank()隱藏它們。 (默認情況下,上面的圖只是嘀嗒聲和圖形上繪製「最後」的文字,但我需要所有)
對於最後一個問題,你應該用適當的圖形設備功能,如PDF()或TIFF(),以及適當的「特殊」設置。 – 2011-05-25 20:20:47