图形轴的名称存在问题。必须在轴名称Cyrillic中使用,xample ум.одн(下面的代码)。
<label for="title">Title: </label><textarea rows="5" id="title" name="title"></textarea>
编译后我收到错误:
<<echo=FALSE,size='normalsize',fig.width=5, fig.height=4,results = "asis">>=
result <- read.table(file='results/mydata',sep = ";",nrows = 5,header =TRUE)
p <- ggplot(data = result, aes(y = n, x=r)) +
geom_smooth(method = "lm", se=FALSE, color="orange", formula = y ~ x) +
stat_poly_eq(formula = y ~ x,
aes(label = paste(..eq.label.., ..rr.label.., sep = "~~~")),
parse = TRUE) +
geom_point() + xlab( expression('r'^-1~'м'))+ ylab( expression('n'~'ум.одн'))
p
有什么问题?