Next: Spatial and spatio-temporal data
Up: Graphics and output
Previous: Nice dots/points in scatterplots
- Controlling line/point size separately from axes
- >plot(x,y,type="n")
- >points(x,y,cex=.3)
- making a plot within a plot, use
- making legends
- >legend(locator(1), legend = c("h=0.7","h=2"),
lty = c(5,4))
- the next click of your mouse button will position the legend (that's
what locator() does)
You can also pass locational text to the first argument, such as
>legend(x='topright',legend=c("h=0.7","h=2"),
lty = c(5,4))
Chris Paciorek
2008-12-14