Hey,

I have a dataset like this:

ID     Var1       Var2     Group
A1         1            1            BB
A2         1           2            AA
B1          2          1             CC
B2         1            3            DD
C1          1            2            EE

I would like to plot the points of Var1 and Var2, use "ID" as X-axis, but
color the points by "Group". I can only manage to color the points by "ID"
after transform the dataset to "tall" using "reshape" package.

Thanks for your help!

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to