R graphics in PNG
png("myplot.png", bg="transparent", width=700, height=500)
data(volcano)
x <- 10 * (1:nrow(volcano))
y <- 10 * (1:ncol(volcano))
contour(x, y, volcano, levels = seq(90, 200, by = 5))
axis(1, at = seq(100, 800, by = 100))
axis(2, at = seq(100, 600, by = 100))
box()
title(main = "Maunga Whau Volcano", font.main = 4)
dev.off()
| Previous Next Overview The Structure of R Graphics R graphics in PNG R graphics in PNG R graphics in JPEG R graphics in JPEG R graphics in SVG R graphics in SVG Inaccessible SVG Features Taking Advantage of SVG The gridSVG Package The gridSVG Package Transparency via gridSVG Transparency via gridSVG Hyperlinks via gridSVG Hyperlinks via gridSVG Animation via gridSVG Animation via gridSVG Animation via gridSVG Summary |