forage_data_plot <- forage_data %>% group_by(seed_type,distance) %>%
summarize (mean_visits = mean(visits), sem =sd(visits)/sqrt(length(visits)))
jpeg("interaction_ggplot_forgae2.jpeg,width=1100,height=600“)
par(mar = c(6,6,2,2),mgp=c(3,1,0)) #margins of plot
pd <- position_dodge(0.1)
ggplot(forage_data_plot, # our data
aes(x=seed_type,y=mean_visits,colour=distance,group=distance))+
ylab("mean_visits\n") + xlab("seed_type/n") +
scale_color_manual(values = c("N" = "firebrick", "Y" = "darkslategray4"))+
theme(axis.line.x = element_line(color="black", size = 0.7),
axis.line.y = element_line(color="black", size = 0.7),
axis.title = element_text(family = "Helvetica", color="#666666",
face="bold", size=32), axis.text=element_text(size=28),
panel.background=element_rect(fill="white"),
legend.text=element_text(size=25),
legend.title=element_text(size=30),
legend.key.height = unit(3, "line"),
legend.key = element_rect(fill = "white")) +
geom_errorbar(aes(ymin=mean_visits-sem, ymax=mean_visits+sem),
width=.1, size=0.9, position=pd, colour="gray32") +
geom_line(position=pd, size=0.9) + #lines between means (points)
geom_point(position=pd, size=5) #points of means
dev.off()
Warning messages:
1: Removed 4 rows containing missing values (geom_path).
2: Removed 4 rows containing missing values (geom_point).
3: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
Windows字体数据库里没有这样的字体系列
4: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
Windows字体数据库里没有这样的字体系列
5: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
Windows字体数据库里没有这样的字体系列
6: In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
Windows字体数据库里没有这样的字体系列
7: In grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :
Windows字体数据库里没有这样的字体系列
(these Chinese character means that they do not have this font in the database)
I cannot see my plot, and I don't know why there are missing values. Do I need to download some font to solve this problem?
summary(foraging_anova)
Df Sum Sq Mean Sq
seed_type 1 369.2 369.2
distance 1 2.3 2.3
seed_type:distance 1 0.1 0.1
Also, for the summary of ANOVA, seems like it does not have the statistical results. What should I do
I know it might be a stupid question, but I really really need help.