Very new to R!
I have a survey with people answering from 0 to 10. I want to add up how many people were <= 6. How many 7 and 8. How many >=9.
I had to turn the questions (Return, Trustworthy...) into a factors to make a ggplots with 1 to 10 on the x axis.
uk_super_q<-read.csv("SUPR_Q_UK.csv", header = TRUE)
uk_super_q.Return <- as.factor(uk_super_q$Return)
uk_super_q.Trustworthy <- as.factor(uk_super_q$Trustworthy)
uk_super_q.Credible <- as.factor(uk_super_q$Credible)
uk_super_q.Trustworthy <- as.factor(uk_super_q$Trustworthy)
uk_super_q.Clean.and.Simple <- as.factor(uk_super_q$Clean.and.Simple)
uk_super_q.Easy.to.use <- as.factor(uk_super_q$Easy.to.use)
uk_super_q.Attractive <- as.factor(uk_super_q$Attractive)
uk_super_q.NPS <- as.factor(uk_super_q$NPS)
uk_super_q$Return <- as.factor(uk_super_q$Return)
ggplot(uk_super_q, aes(x = Return)) +
geom_bar() +
xlab("Return") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Return)
uk_super_q$Easy.Nav <- as.factor(uk_super_q$Easy.Nav)
ggplot(uk_super_q, aes(x = Easy.Nav)) +
geom_bar() +
xlab("Easy.Nav") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Trustworthy)
uk_super_q$Credible <- as.factor(uk_super_q$Credible)
ggplot(uk_super_q, aes(x = Credible)) +
geom_bar() +
xlab("Credible") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Credible)
uk_super_q$Attractive <- as.factor(uk_super_q$Attractive)
ggplot(uk_super_q, aes(x = Attractive)) +
geom_bar() +
xlab("Attractive") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Attractive)
uk_super_q$Trustworthy <- as.factor(uk_super_q$Trustworthy)
ggplot(uk_super_q, aes(x = Trustworthy)) +
geom_bar() +
xlab("Trustworthy") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Trustworthy)
uk_super_q$Clean.and.Simple <- as.factor(uk_super_q$Clean.and.Simple)
ggplot(uk_super_q, aes(x = Clean.and.Simple)) +
geom_bar() +
xlab("Clean.and.Simple") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Clean.and.Simple)
uk_super_q$Easy.to.use <- as.factor(uk_super_q$Easy.to.use)
ggplot(uk_super_q, aes(x = Easy.to.use)) +
geom_bar() +
xlab("Easy.to.use") +
ylab("Total Count") +
labs(fill = "Blah")
table(uk_super_q.Easy.to.use)
uk_super_q$NPS <- as.factor(uk_super_q$NPS)
ggplot(uk_super_q, aes(x = NPS)) +
geom_bar() +
xlab("NPS") +
ylab("Total Count")
table(uk_super_q.NPS)