가 나는 ecdf 플롯을 생성하고 그것에 범례를 추가하고 싶지만, 다음과 같은 오류지고 :ecdf 플롯에 범례를 추가하는 방법은 무엇입니까?
plot(xlim=c(0,100), ylim=c(0,1), main=NULL, xaxs="i", yaxs="i",
ecdf(PrecentageVector1), col="red", do.p = FALSE, pch=19,
lwd=3, legend("bottomleft",c("A","B","C")), panel.first = grid())
Error in strwidth(legend, units = "user", cex = cex, font = text.font) :
invalid graphics state
어떤 문제가 될 수 있습니까?
: @timriffe 말한다 , 당신은 뭔가를 할 필요가있다. 일반적으로'plot()' –