0
我正與一個小數據集作爲工作失分如下:GGPLOT2 summarySE繪製小的數據集 - 使用geom_point
Thermo Chl Month
1.53 1.53 May
3.63 1.53 June
3.83 2.33 July
3.84 2.33 July
5.08 August
5.50 August
5.04 1.55 September
5.90 1.70 September
3.75 September
3.63 1.70 September
5.90 1.70 September
9.00 2.50 October
11.03 1.03 October
11.00 1.00 October
9.00 2.37 October
9.00 2.03 November
14.96 2.04 November
7.13 15.95 January
13.03 9.00 February
9.00 1.03 April
9.00 2.50 May
8.97 2.50 May
4.88 2.50 June
4.88 2.50 June
3.63 2.50 July
4.88 1.03 July
3.83 2.33 August
5.53 2.30 August
7.20 2.37 September
7.17 2.33 September
7.17 2.33 September
7.20 2.37 September
7.17 2.33 September
7.17 2.33 September
7.17 1.08 September
7.17 2.33 September
7.17 1.03 September
7.17 2.33 September
7.17 2.33 September
7.17 1.03 September
9.00 1.03 October
9.00 2.37 October
8.97 5.50 October
11.00 5.50 October
13.00 10.00 November
13.00 10.00 December
11.00 15.17 January
11.00 1.03 February
9.00 2.33 March
5.50 1.03 April
3.83 2.37 May
3.87 2.33 June
5.50 3.83 June
3.83 2.33 July
5.50 3.37 July
7.17 2.37 July
7.17 2.30 August
7.17 2.33 September
9.00 2.33 September
9.03 3.83 September
9.00 3.83 September
9.00 2.33 September
9.00 2.37 September
7.17 2.33 September
7.17 4.00 September
7.17 3.50 September
7.17 2.33 September
7.20 2.33 September
7.17 3.83 September
7.17 2.33 October
7.17 2.30 October
7.17 2.33 October
7.17 2.33 October
8.68 2.33 October
7.20 2.33 October
9.00 3.87 October
9.00 5.50 October
11.00 5.50 November
13.00 1.03 November
11.00 3.83 November
9.00 3.83 December
6.03 13.00 March
8.00 15.67 March
5.97 0.70 April
5.57 2.40 May
7.25 1.03 May
5.50 2.33 June
5.50 3.00 July
4.70 2.00 July
5.50 2.33 August
5.50 2.33 August
9.00 2.33 September
9.00 1.03 September
9.00 2.33 September
7.13 2.37 September
7.17 2.33 September
7.17 2.33 September
7.17 2.33 September
7.17 2.43 September
7.20 1.07 September
7.17 2.00 September
7.17 2.33 September
7.17 2.00 September
7.17 1.03 September
7.13 2.33 October
7.17 2.33 October
7.17 2.30 October
7.17 2.33 October
9.00 3.83 October
13.00 2.33 October
14.97 3.83 October
14.93 2.03 October
當我與summarySE和GGPLOT2功能繪製如下:
phyto.maxchl$Month <- factor(phyto.maxchl$Month)
phyto.se <- summarySE(phyto.maxchl, measurevar="Thermocline", groupvars=c("Month"))
ggplot(phyto.se, aes(x=phyto.se$Month, y=phyto.se$Thermocline)) +
geom_point(position=position_dodge(),stat="identity") +
geom_errorbar(aes(ymin=phyto.se$Thermocline-se, ymax=phyto.se$Thermocline+se),
width=.2,
position=position_dodge(.9))+
ylab("Thermocline Depth (m)")+
xlab("Month")+
theme_bw()+
theme(axis.text.x=element_text(angle=70,size=15,vjust=0.60))+
labs(title = "Thermocline Depth for 2013 - 2016")+
scale_y_continuous(trans='reverse')+
theme(legend.title=element_blank())
我缺少1月至4月的積分。這是因爲我沒有足夠的數據點來滿足計算標準誤差所需的要求嗎?
'summarySE'中使用的列名稱不同於'df'中的列名稱。另外,不要在'aes()'裏面使用'''' – GGamba