If I understand what you want correctly, you'll probably want to use the
"col" argument in whatever base graphics function you're using, rather than
changing something in the graphical parameters.  For example, if I wanted to
add red points to an existing plot, I would use something like

     points(c(1:10), col="red")

Or, if I wanted to generate a barplot using a shading color other than gray,

     barplot(c(1:10), col="steelblue")

Does that answer your question?


Kyle H. Ambert
Fellow, National Library of Medicine
Department of Medical Informatics & Clinical Epidemiology
Oregon Health & Science University



On Tue, Jan 26, 2010 at 6:44 AM, Jose Narillos de Santos <
narillosdesan...@gmail.com> wrote:

> Hi all I want to apply different colors on a simple plot:
>
> If I type par(br="gray") before a plot it puts all the image in gray but
> (imagine I run a simple plot) want to let the centrall box (where the dots
> are plotted) in white or image in lightblue.
>
> Can anyone guide me to apply this second step (make the box where the
> series
> are plotted in different colours).
>
> Thanks in advance.
>
>        [[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.
>

        [[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