Skip to content
Prev 31375 / 398506 Next

plots

Hi,
On Tue, 29 Apr 2003, Anna H. Pryor wrote:

            
Which version of R are you using on which platform?  Which plot were you 
trying to draw that cause this?  Can you give us some reproducible 
examples?  

The example seems to work fine:

plot(1:10, xlab = "A Label", ylab = "Another Label",
     axes = FALSE)
axis(1, at = seq(1, 10, by = 2),
     labels = c("a", "b", "c", "d", "e"))
axis(2, at = seq(1, 10, by = 2),
     labels = c("f", "g", "h", "i", "j"))

box()
You should be typing your R codes in a text editor (whatever platform 
you're working on).  Then copy and paste the codes into R.  This way you 
are not only able to make changes easily but also you have a good way to 
keep your history.

There are other graphics formats available, such as png(), pdf()...etc.