

Even though the bins are the same with n=5 the frequency/observations don't match with the excel or hist() function plotted histograms. Facet with one variable Facet with two variables Facet scales Facet label apperance. Crosstabs provide a basic picture of the interrelation between two variables and can help find interactions between them. However, i tried the same process but utilising ggplot because this was recommended but i can't seem to get the same results.

hist(WPTD2$Distance, xlab = 'Distance', ylab = 'Number of Observations', main = 'Distances of individual woodpigeons during sampling 1-4', col = 'skyblue', breaks = seq(from=0,to=100,by=5)) Utilising the hist() function i was able to recreate the excel histogram utilising the code below. categories that become the bars in the graph) are automatically created in Excel 2016 using Scotts Rule. Now i have to recreate these histograms in Rstudio to be able to work with the data and later plot model-functions using Distance Software.īut i seem to be running into some problems regarding making histograms. To visualise my sampling data i have to make histograms to see if the frequency of observations decreases when the distance becomes larger.ĭuring the sampling period i visualised by data in my excel sheets utilising the histogram function and this resulted in this:
