[R] plot character

Jerome Asselin jerome at hivnet.ubc.ca
Tue Jul 22 19:13:14 CEST 2003


Use text().

x <- rnorm(10); y <- rnorm(10)
plot(x,y,type="n")
text(x,y,rep(c("te","tr"),each=5))

Cheers,
Jerome

On July 22, 2003 09:59 am, Luis Miguel Almeida da Silva wrote:
> Dear helpers
>
> Is it possible to plot with a desired character? For example "tr" for
> training error and "te" for test error. I tried
>
> plot(x,y,pch="tr")
>
> but only appears "t" in the plot
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list