Hi,
Perhaps the easiest way is with grid.raster,
library(grid)
pdf("colorstrip.pdf", height=1, width=10)
grid.raster( t(myCols), width=unit(1,"npc"), height=unit(1,"npc"),
interpolate=FALSE)
dev.off()
HTH,
baptiste
On 20 October 2011 03:32, Brian Smith wrote:
> Hi,
>
> I was trying to get an
On 19/10/2011 11:14 AM, Brian Smith wrote:
Hi Duncan,
Yes, I'd like it without any gaps. There are likely to be at least a hundred
colors, so something that is not as 'tall' (ideally an inch?) and that would
be a mm or two for each color.
Should be no problem, just follow the instructions in t
Hi Duncan,
Yes, I'd like it without any gaps. There are likely to be at least a hundred
colors, so something that is not as 'tall' (ideally an inch?) and that would
be a mm or two for each color.
thanks!
On Wed, Oct 19, 2011 at 10:49 AM, Duncan Murdoch
wrote:
> On 19/10/2011 10:32 AM, Brian Sm
On 19/10/2011 10:32 AM, Brian Smith wrote:
Hi,
I was trying to get an image/pdf of a sequence of colors in the order given.
For example:
myCols<- c('#BF','#BF','#FF','#FF','#BF','#FF')
I'd like to make a strip of colors as they appear in the order above and
save it as
Hi,
I was trying to get an image/pdf of a sequence of colors in the order given.
For example:
myCols <- c('#BF','#BF','#FF','#FF','#BF','#FF')
I'd like to make a strip of colors as they appear in the order above and
save it as a pdf file. Is there a function in the base
5 matches
Mail list logo