Plot Function
- plot(Veg$BARESOIL, Veg$R)
o 1st arg : horizontal, 2nd arg: vertical
- plot( x = , y = )
- additional arguments
o ylab, xlab, main, xlim, max
Symbols , Colours and Sizes
- pch
- Use of vector for pch
o [come back to this]
- changing colour of plotting symbols
o use of a vector for col
- altering size of plotting symbols
Adding a smoothing line
plot( x = Veg$BARESOIL, y = Veg$R, xlab = "Exposed soil", ylab = " Species richness", main = "Scatter Plot", xlim = c(0,45), ylim = c(4,19))
> M.Loess <- loess (R ~ BARESOIL, data = Veg)
> Fit <- fitted(M.Loess)
> lines(Veg$BARESOIL, Fit)
No comments:
Post a Comment