-2
代碼中試圖用下面的錯誤,沒有任何意義爲什麼這個R ggplot下標不起作用?
g <- ggplot(datm, aes(variable, value, fill=gender)) + geom_bar(stat="identity", position = position_dodge()) + facet_grid(male.Nij ~ group) + xlab("Association type") + ggtitle("View")
#http://stackoverflow.com/a/17335258/54964
g + labs(y=expression(N_{s}))
我得到應用g + labs(y=expression(N_{s}))
Error: unexpected '{' in "g + labs(y=expression(N_{"
Execution halted
R:3.3.2反向移植
OS:Debian的8.5