[R] profile plot in R
Duncan Murdoch
murdoch.duncan at gmail.com
Sat Jun 18 14:56:08 CEST 2011
On 11-06-17 3:43 PM, Vickie S wrote:
>
> Hi friends,
>
> I have a matrix with following format.
>
> group var1 var2 .......varN
>
> c1 group1 1.2399 1.4990....-1.4829
>
> c2 group4 0.8989 0.7849.....1.8933
>
> ...
>
> ...
>
> c100 group10 .....
>
>
>
> I want to draw a profile plot
> of each condition c1 to c100, which rows in above matrix and each line
> representing a row should be uniquely colored according to the group(1
> to 10).
>
> I think this is simple task but I could not figure out how to set the colors.
The matplot function plots matrix columns, so it could do what you want
if you transpose your matrix (using t()). It has arguments for colour,
line type, etc. that work column-wise.
Duncan Murdoch
>
>
>
> Any help would be appreciated.
>
>
>
> thanks
>
> -Vickie
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list