Skip to content
Back to formatted view

Raw Message

Message-ID: <52B23EFF.6070208@gmail.com>
Date: 2013-12-19T00:34:07Z
From: Duncan Murdoch
Subject: plot() function: color transparency
In-Reply-To: <1387405416.51556.YahooMailNeo@web125005.mail.ne1.yahoo.com>

On 13-12-18 5:23 PM, capricy gao wrote:
> I checked as you suggested. However, I found that the number in those
> functions are the number of colors. In contrast, my number here means a
> specific color, for example, 2 in my code means "red", 3 in my code
> means "green"....
>

You didn't read very carefully.

Duncan Murdoch

>
>
> On Wednesday, December 18, 2013 1:18 PM, Duncan Murdoch
> <murdoch.duncan at gmail.com> wrote:
> On 13-12-18 2:08 PM, capricy gao wrote:
>
>  > I found all the color transparency was defined with character color,
> or rgb color. What if I have number code and still try to modify the
> transparency?
>  >
>  > For example:
>  >
>  >> x=c(1:5)
>  >> color=c(2,2,3,4,5)
>  >> plot(x, col=color)
>  >> plot(x, col=color,pch=20)
>  >
>  > here I defined color by numbers, how can I modify the transparency?
>
>
> See the examples for ?palette.
>
> Duncan Murdoch
>
>
>
>