[R] Numbers as symbols

Nick Drew drewbrewit at yahoo.com
Tue Jun 29 06:37:01 CEST 2004

I want to use question numbers from my survey data
(fake data below) as markers in a scatterplot. I'm
using "as.character" to convert question numbers to
characters. However, plot truncates the 0 (zero) off
of question 10. How can I get the ending zero so I can
add questions 11 - 20?
# Sample code below
Question <- c(1,2,3,4,5,6,7,8,9,10)
Performance <-
Importance <-
Survey <-
nums <-as.character(Question)
plot(Performance, Importance, xlab='Graph',
ylab='',pch=nums, axes=T)
Thanks in advance for your help.

More information about the R-help mailing list