[R] Odp: in regards of plotting using functions.
Petr PIKAL
petr.pikal at precheza.cz
Mon Nov 29 12:50:26 CET 2010
Hi
r-help-bounces at r-project.org napsal dne 29.11.2010 11:48:07:
> Hello,
>
> I am using basic plotting technique to get a graph.
> but i want to color the points plotted onto the graph depending upon few
> mathematical logics.
> values > x should be colored blue.
> values < y should be colored green.
>
Untested
plot(a, b, pch=19, col=c("green", "blue)[ifelse(values>x, 2,
ifelse(values<y, 1, NA))])
Regards
Petr
> how can i go forward with the programming part in drawing these plots
from
> a single file.
>
> Please do let me know as soon as possible
>
> Regards,
> --
> Pravin Nilawe
> Bioinformatics,
> +91 9869739671
>
> [[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