I am having trouble with the following, can any one help?
library(dplyr)
library(ggplot2)
#Read in data#
AssementData <- read_xlsx(file.choose(AssementData.xlsx))
#Have a quick look at the data#
head(AssementData)
glimspe(AssementData)
#How many variables are there?#
#Exploring the data#
ggplot(AssementData, aes(x/axis = Type, y/axis = PlantDiv))+
geom_point()+
theme_classic()
#Look at graph - what relationship is betw Type and plantdiv?#
#Use this plot to assess linear relationship assump = straight line?#
#Calculate summary statistics eg means/ standard errors for both vars#
means <- summarise(AssementData, mnplant = mean (PlantDiv),
seplant = sd(Type)/sqrt(n()),
mnpest = mean(Type),
sepest = sd(Type)/sqrt(n))
means
#checking normality assump#
#check whether both variables appear to be norm distrib (ie do they follow bell curve)#
ggplot(AssementData, aes(x/axis = Type, y/axis = PlantDiv))
geom_histogram()+
theme_classic
#Spearmans rank correlation#
cor.test(~Type + PlantDiv, method = "Pearson", data = AssementData)
I get the Error
Error in eval(m$data, parent.frame()) : object 'AssementData' not found