Skip to content
Back to formatted view

Raw Message

Message-ID: <20061218141958.83385.qmail@web32808.mail.mud.yahoo.com>
Date: 2006-12-18T14:19:57Z
From: John Kane
Subject: plot
In-Reply-To: <366432610.28012@capitalbio.com>

--- XinMeng <xmeng at capitalbio.com> wrote:

> Hello sir:
> a data with 2 columns:
> id x
> a  1
> b  2
> c  3
> 
> I wanna get such kind of plot:
> x: a b c
> y:1 2 3
> 
> But the plot command doesn't permit string character
> as x.
> 
> How can I get it ?
> 
> Thanks a lot !
> 
> My best

It is not clear exactly what kind of a plot you want
but is it something like this?

x <- c("a", "b", "c")
y <- c(1,2,3)
plot(y, axes=F)
axis(1, at=c(1:3), labels= x)
axis(2, at = y, labels=y)
box()