Yes! You are right ! It is perpendicular to the axis.
Thank you very much!
Could I choose the angle ,such as 45 degree?
Best Regards!
Ivy Li
YMS in Production & Testing
Semiconductor Manufactory International(ShangHai) Corporation
#18 ZhangJiang Road, PuDong New Area, Shanghai, China
Tel: 021-5080-2000 *11754
Email: Ivy_Li at smics.com
-----orig---
Hi Ivy,
How about
x <- data.frame(main.name="AAA",
x.name=rep(c("Apply","Watermelon","Lemon","Banana",
"Grape","Pineapply","Cherry","Peach","Orange","Mango","Strawberry"),each=5),
y.name=(1:55))
par(las=2);
plot(x$x.name, x$y.name)
Bobby
On Mon, 18 Oct 2004 09:36:12 +0800, Ivy_Li <ivy_li at smics.com>
wrote:> Thank you for your help!
> I gave you an example, you could run it in R . Maybe you will understand my
meaning clearly.
>
> x <- data.frame(main.name="AAA",
x.name=rep(c("Apply","Watermelon","Lemon","Banana",
>
"Grape","Pineapply","Cherry","Peach","Orange","Mango","Strawberry"),each=5),
y.name=(1:55))
> plot(x$x.name, x$y.name)
>
> I can't find you said package ,whick library should I include in R ?
>
> Best Regards!
> Ivy Li
> YMS in Production & Testing
> Semiconductor Manufactory International(ShangHai) Corporation
> #18 ZhangJiang Road, PuDong New Area, Shanghai, China
> Tel: 021-5080-2000 *11754
> Email: Ivy_Li at smics.com
>
> -----
>
> At 16:17 2004-10-15 +0800, you wrote:
>
> >[...] I want to rotate the direction of x-coordinates' letter so
that it
> >can show all. But I don't know how to write this option or function
.
>
> I'm not sure if I've understood your question correctly. But if you
use
> base graphics and want e.g. rotated labels, you'll achive this rather
> easily using functions in the gridBase package. (Take a look at the package
> vignette for an example that'll get you started.)
>
> Henric
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
unfortunately, you cannot specify 45 degrees as value for "las". It only takes the values 0,1,2,3: 0: always parallel to the axis [default], 1: always horizontal, 2: always perpendicular to the axis, 3: always vertical. On Mon, 18 Oct 2004 10:26:52 +0800, Ivy_Li <ivy_li at smics.com> wrote:> Yes! You are right ! It is perpendicular to the axis. > Thank you very much! > Could I choose the angle ,such as 45 degree? > > Best Regards! > Ivy Li > YMS in Production & Testing > Semiconductor Manufactory International(ShangHai) Corporation > #18 ZhangJiang Road, PuDong New Area, Shanghai, China > Tel: 021-5080-2000 *11754 > Email: Ivy_Li at smics.com > > ----- > : Bobby Corpus [mailto:bobby.corpus at gmail.com] > Re: ... [R] R plot problems > > Hi Ivy, > > How about > > x <- data.frame(main.name="AAA", > x.name=rep(c("Apply","Watermelon","Lemon","Banana", > "Grape","Pineapply","Cherry","Peach","Orange","Mango","Strawberry"),each=5), > y.name=(1:55)) > par(las=2); > plot(x$x.name, x$y.name) > > Bobby > > On Mon, 18 Oct 2004 09:36:12 +0800, Ivy_Li <ivy_li at smics.com> wrote: > > Thank you for your help! > > I gave you an example, you could run it in R . Maybe you will understand my meaning clearly. > > > > x <- data.frame(main.name="AAA", x.name=rep(c("Apply","Watermelon","Lemon","Banana", > > "Grape","Pineapply","Cherry","Peach","Orange","Mango","Strawberry"),each=5), y.name=(1:55)) > > plot(x$x.name, x$y.name) > > > > I can't find you said package ,whick library should I include in R ? > > > > Best Regards! > > Ivy Li > > YMS in Production & Testing > > Semiconductor Manufactory International(ShangHai) Corporation > > #18 ZhangJiang Road, PuDong New Area, Shanghai, China > > Tel: 021-5080-2000 *11754 > > Email: Ivy_Li at smics.com > > > > ----- > > > > At 16:17 2004-10-15 +0800, you wrote: > > > > >[...] I want to rotate the direction of x-coordinates' letter so that it > > >can show all. But I don't know how to write this option or function . > > > > I'm not sure if I've understood your question correctly. But if you use > > base graphics and want e.g. rotated labels, you'll achive this rather > > easily using functions in the gridBase package. (Take a look at the package > > vignette for an example that'll get you started.) > > > > Henric > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > >
Check out:
http://maths.newcastle.edu.au/~rking/R/help/02b/2873.html
Ivy_Li <Ivy_Li <at> smics.com> writes:
:
: Yes! You are right ! It is perpendicular to the axis.
: Thank you very much!
: Could I choose the angle ,such as 45 degree?
:
: Best Regards!
: Ivy Li
: YMS in Production & Testing
: Semiconductor Manufactory International(ShangHai) Corporation
: #18 ZhangJiang Road, PuDong New Area, Shanghai, China
: Tel: 021-5080-2000 *11754
: Email: Ivy_Li <at> smics.com
:
:
: -----
:
:
: Hi Ivy,
:
: How about
:
: x <- data.frame(main.name="AAA",
:
x.name=rep(c("Apply","Watermelon","Lemon","Banana",
:
"Grape","Pineapply","Cherry","Peach","Orange","Mango","Strawbe
rry"),each=5),
: y.name=(1:55))
: par(las=2);
: plot(x$x.name, x$y.name)
:
: Bobby
:
: On Mon, 18 Oct 2004 09:36:12 +0800, Ivy_Li <ivy_li <at> smics.com>
wrote:
: > Thank you for your help!
: > I gave you an example, you could run it in R . Maybe you will understand
my meaning clearly.
: >
: > x <- data.frame(main.name="AAA", x.name=rep(c
("Apply","Watermelon","Lemon","Banana",
:
:
"Grape","Pineapply","Cherry","Peach","Orange","Mango","Strawb
erry"),each=5), y.name=(1:55))
: > plot(x$x.name, x$y.name)
: >
: > I can't find you said package ,whick library should I include in R ?
: >
: > Best Regards!
: > Ivy Li
: > YMS in Production & Testing
: > Semiconductor Manufactory International(ShangHai) Corporation
: > #18 ZhangJiang Road, PuDong New Area, Shanghai, China
: > Tel: 021-5080-2000 *11754
: > Email: Ivy_Li <at> smics.com
: >
: > -----original----
: >
: > At 16:17 2004-10-15 +0800, you wrote:
: >
: > >[...] I want to rotate the direction of x-coordinates' letter so
that it
: > >can show all. But I don't know how to write this option or
function .
: >
: > I'm not sure if I've understood your question correctly. But if
you use
: > base graphics and want e.g. rotated labels, you'll achive this rather
: > easily using functions in the gridBase package. (Take a look at the
package
: > vignette for an example that'll get you started.)
: >
: > Henric
: >
: > ______________________________________________
: > R-help <at> stat.math.ethz.ch mailing list
: > https://stat.ethz.ch/mailman/listinfo/r-help
: > PLEASE do read the posting guide! http://www.R-project.org/posting-
guide.html
: >
:
: ______________________________________________
: R-help <at> stat.math.ethz.ch mailing list
: https://stat.ethz.ch/mailman/listinfo/r-help
: PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
:
: