Hi, there:
When plot ann predicted results I need to indicate numbers of inputs for
each column.
V1 V2 V3 V4
1 86.2700 49.9380 30.7630 0.1327
2 89.5127 55.9707 33.7683 0.1186
3 91.1833 58.4670 34.5610 0.1134
matplot(t, pch = 1:4, type = "o", col = rainbow(ncol(t)),xlab =
"No. of
inputs ", ylab = "Mean of 6 Datasets", main =
"xxxxxxxxxxx")
Instead of have typical x axes' range as "1, 2, 3, and 4" for each
column, I
need to indicate "11 Vars, 10 Vars, 6Vars, and 4Vars" or "A, B,
C, and D"
Does anybody know anything about it? I appreciate if you could help me out.
Thank you very much indeed.
Qin
matplot(.., axes=FALSE)
then custozie by yourself ayour axes
->axis(1,at=1:4,label=c("11 Vars","10
Vars","6Vars","4Vars"))
?axis and see label option for more details
HTH,
Yves MAGLIULO, PARIS
Le mer 08/12/2004 ?? 11:36, Qin Liu a ??crit :> Hi, there:
>
> When plot ann predicted results I need to indicate numbers of inputs for
> each column.
>
> V1 V2 V3 V4
> 1 86.2700 49.9380 30.7630 0.1327
> 2 89.5127 55.9707 33.7683 0.1186
> 3 91.1833 58.4670 34.5610 0.1134
>
> matplot(t, pch = 1:4, type = "o", col = rainbow(ncol(t)),xlab =
"No. of
> inputs ", ylab = "Mean of 6 Datasets", main =
"xxxxxxxxxxx")
>
> Instead of have typical x axes' range as "1, 2, 3, and 4" for
each column, I
> need to indicate "11 Vars, 10 Vars, 6Vars, and 4Vars" or "A,
B, C, and D"
>
> Does anybody know anything about it? I appreciate if you could help me out.
>
> Thank you very much indeed.
>
> Qin
>
> ______________________________________________
> 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
>
Add xaxt="n" in matplot(), then follow by axis(1, at=1:ncol(t),
labels=c("A", "B", ...)).
HTH,
Andy
> From: Qin Liu
>
> Hi, there:
>
> When plot ann predicted results I need to indicate numbers of
> inputs for
> each column.
>
> V1 V2 V3 V4
> 1 86.2700 49.9380 30.7630 0.1327
> 2 89.5127 55.9707 33.7683 0.1186
> 3 91.1833 58.4670 34.5610 0.1134
>
> matplot(t, pch = 1:4, type = "o", col = rainbow(ncol(t)),xlab
> = "No. of
> inputs ", ylab = "Mean of 6 Datasets", main =
"xxxxxxxxxxx")
>
> Instead of have typical x axes' range as "1, 2, 3, and 4" for
> each column, I
> need to indicate "11 Vars, 10 Vars, 6Vars, and 4Vars" or "A,
> B, C, and D"
>
> Does anybody know anything about it? I appreciate if you
> could help me out.
>
> Thank you very much indeed.
>
> Qin
>
> ______________________________________________
> 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
>
>
Try suppresing the axes with plot(...,xaxt='n') and adding a custom axis with the command axis(1,labels=LETTERS[1:5],at=1:5) see ?axis for more info Cheers, Henrik Qin Liu wrote:> Hi, there: > > When plot ann predicted results I need to indicate numbers of inputs for > each column. > > V1 V2 V3 V4 > 1 86.2700 49.9380 30.7630 0.1327 > 2 89.5127 55.9707 33.7683 0.1186 > 3 91.1833 58.4670 34.5610 0.1134 > > matplot(t, pch = 1:4, type = "o", col = rainbow(ncol(t)),xlab = "No. of > inputs ", ylab = "Mean of 6 Datasets", main = "xxxxxxxxxxx") > > Instead of have typical x axes' range as "1, 2, 3, and 4" for each column, I > need to indicate "11 Vars, 10 Vars, 6Vars, and 4Vars" or "A, B, C, and D" > > Does anybody know anything about it? I appreciate if you could help me out. > > Thank you very much indeed. > > Qin > > ______________________________________________ > 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 >-- --------------------------------------------- Henrik Andersson Netherlands Institute of Ecology - Centre for Estuarine and Marine Ecology P.O. Box 140 4400 AC Yerseke Phone: +31 113 577473 h.andersson at nioo.knaw.nl http://www.nioo.knaw.nl/ppages/handersson
Seemingly Similar Threads
- seeking advice for manipulating matrices to find the difference
- Help with predict.Arima with external regressor values [Repalced]
- poly() in lm() leads to wrong coefficients (but correct residuals)
- different results in MASS's mca and SAS's corresp
- Meta-Analysis of proportions