## basic plot, assigned to an object
tmp2 <- plot(example)
## a different plot (data for plotting are randomly generated each time,
## unless you assign and recycle it, like in following examples)
plot(example)
## use existing_data and random=FALSE to get the same plot (if assigned)
plot(example, random=FALSE, existing_data=example.data)
## esclude roots and skeletal from a plot
plot(example, random=FALSE, existing_data=example.data, plot.roots=FALSE,
plot.skeletal=FALSE)
## a compex plot with an element added to the basic soil structure and a
## legend, and an overview of options
plot(example, random=FALSE, existing_data=example.data, horizon.border='blue',
width=500, plot.roots=FALSE, plot.skeletal=FALSE, element='Corg',
element.lim=c(0, 27), element.col='black', names=FALSE, background='white',
element.lab='Organic carbon (percent)', element.legend=TRUE,
legend.labs='TOC')
## an optimal plotting with its graphical device, note the use of width
## both in the device and within the plot.
png('myprofile.png', height=800, width=1200, pointsize=28)
plot(example, random=FALSE, existing_data=example.data, horizon.border='blue',
width=1200, plot.roots=FALSE, plot.skeletal=FALSE, element='Corg',
element.lim=c(0, 27), element.col='black', names=FALSE, background='white',
element.lab='Organic carbon (percent)', element.legend=TRUE,
legend.labs='TOC')
dev.off()
Run the code above in your browser using DataLab