Plots the different results from
a list of survey summaries, the output of
what variable to plot. Options are:
vector with name of each item in list, to be added to the legend. If
This function will plot the results of the
surveySim() simulations using Kernel Density plots.
All the grids that are to be compared should be grouped into 1 list (list(a,b,c,etc...))
The plot function allows you to choose different parts of the survey summaries produced by
surveySim() you want to plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#create 3 Simulations with sites of different sizes: small.sites<-parametersExample small.sites$site.area=500 medium.sites<-parametersExample medium.sites$site.area=1000 large.sites<-parametersExample large.sites$site.area=2000 #run the 3 simulations small.survey<-surveySim(small.sites) medium.survey<-surveySim(medium.sites) large.survey<-surveySim(large.sites) #create the comparative plot. #note that the results go into a list. If labels are not given, legend is built on list names plotSurveySumm( list(small.survey,medium.survey,large.survey), plot="sites.found", labels=c("Small sites","Medium sites","Large sites"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.