
120 Data Analysis and Statistics for Geography, Environmental Science, and Engineering
Save the script as eda6.R and use File|Source R code to source it. Alternatively, you can also
source or load the function by applying
> source(“lab4/eda.R”).
Now, we apply the function by simply
eda6(x)
which should result on graphs like shown in Figure 4.6. In this example, we have not used argument
label and therefore the function employed the default “x” as label for the graphs.
Now, what is layout? It allows dividing the graphics window in panels. It is similar to what we
would obtain by using par(mfrow = c(3,2) ) but here we customize it to use the space more ...