similar to: plot a vertical column of colored rectangles

Displaying 20 results from an estimated 2000 matches similar to: "plot a vertical column of colored rectangles"

2009 Sep 28
2
dichromat, regexp, and grid objects
Dear list, The dichromat package defines a dichromat function which "Collapses red-green color distinctions to approximate the effect of the two common forms of red-green colour blindness, protanopia and deuteranopia." library(dichromat) library(grid) colorStrip <- function (colors = 1:3, draw = TRUE) { x <- seq(0, 1 - 1/length(colors), length = length(colors)) y <-
2011 Oct 19
2
Simple color strip
Hi, I was trying to get an image/pdf of a sequence of colors in the order given. For example: myCols <- c('#0000BF','#0000BF','#0000FF','#0000FF','#0000BF','#0000FF') 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 package (or some other package) to do this?
2011 Dec 09
3
ggplot with geom_tile
Dear R-users, I am trying to make a plot with ggplot-geom_tile(), but cannot remove some unwanted (white) lines through my plot. Below a reproducible example: ##### library(ggplot2) tot=as.data.frame(rep(seq(-50,50,5),each=21)) names(tot)="precip" temp=rep(seq(-5,5,0.5),21) tot$temp=temp disc=array(dim=c(21,21)) for(i in 1:21){ for(y in 1:21){ temp<-
2009 Jun 24
1
parallel rotated strips with color gradient
Hi, I want to produce two parallel rotated strips with color gradient. So far, the sample strip is something produced by this: pushViewport(viewport(x = unit(0.638, "npc"), y =unit(0.386, "npc"), width=.62, height=0.006, angle=137.2)) grid.rect(y=100:1/100, just="top", gp=gpar(col=NA, fill=colorRampPalette(c("lightgray",
2012 Feb 14
4
Color cells of a matrix as in Excel
All, I frequently make spreadsheets in Excel in which I rank values in columns by stop-light colors (red is bad, yellow is OK, green is good). Image and heatmap expect a matrix in which all the data are in the same scale, but I frequently have different scales in different columns. ie. Column one runs from 1-10 while column 2 runs from 1-100. I thus need to define a separate color ramp for each
2011 Feb 15
1
gList and gTree methods of grid::grobX
Dear all, In an attempt to draw fill patterns in grid graphics, I have encountered a behavior of grobX that I cannot understand from the documentation. Consider this, library(grid) ## gTree g1 <- gTree(children=gList( rectGrob(0.5,0.5, width=unit(0.8,"npc"), height=unit(2,"cm")), circleGrob(r=0.3)), vp=viewport(0.5,0.5)) ##
2016 Apr 04
2
Strange behaviour with ptmx file descriptors
Hi list At job we have an old C program which works with industrial hand terminals from Honeywell. That terminal has its own ssh/telnet client to connect to a linux redhat 6.6 server (openssh-server-5.3p1-104.el6_6.1.x86_64). Once it is connected to the linux box (using a certain user), a C program is launched by the bash shell with the following parameters export TERM=vt200 stty raw icrnl
2010 Nov 20
2
Merge two ggplots
Hello everyone. I am using ggplot and I need some help to merge these two plots into one. plot_CR<-function(x,y,agentid,CRagent){   library(ggplot2)     agent<-CRagent[[agentid]] # To make following expression shorter   ggplot((data.frame(x=CRX,y=CRY,sr=agent$sr)))+   geom_point(aes(x,y,colour=cut(sr,c(0,-10,-20,-30,-40,-50,-60,-70,-80))))+   geom_text(aes(x,y,color=cut(sr,
2011 Jun 30
1
LOAD GNU/LINUX DEBIAN SYSTEM FROM ISO IMAGE.BUT NOT INSTALL
Good Evening in Spain, have one question about XEN application I have old server GNU/Linux Debian with next disc configuration: /dev/hda1 ext3 8,9G 4,6G 3,9G 55% / tmpfs tmpfs 252M 0 252M 0% /lib/init/rw udev tmpfs 10M 668K 9,4M 7% /dev tmpfs tmpfs 252M 0 252M 0% /dev/shm /dev/hdb1 ext4 19G 7,7G 9,8G 44% /home And I want
2015 Feb 11
4
Fwd: samba & Oracle ACFS Issues
On Wed, Feb 11, 2015 at 10:27:50AM +0100, Nacho del Rey wrote: > Hi Volker and the list > > Yesterday the problem appeared again > > I could launch a strace command over a samba PID to see what was going on > and this is the result > > [PRO] [root at pf3il0024 ~]# strace -frp 57686 > Process 57686 attached - interrupt to quit > 0.000000 fcntl(14, F_SETLKW,
2011 Jul 27
3
USB at domU PV domain & PVUSB
Good Evenight I try to do working usb''s into domU xen guest, SO of xen server is Debian Squenze 6.0, into HVM guest usb works and can make use but with ParaVirtual guest PV can find this devices with lsusb or into /dev/ directory. Kernel load into xend and guest is the same and is the kernel provided by this package: ii linux-image-2.6.32-5-xen-amd64 2.6.32-35
2014 Dec 17
2
Fwd: samba & Oracle ACFS Issues
> > > > >Please remove the SO_RCVBUF and SO_SNDBUF entries. > > >Oh, that's ancient. Do you have any possibility to move to > > >"security=user"? > > The smb.conf file was inherited from HP-UX system. Ok, > > I'll remove them > > > > >Did you try "posix locking = no"? That is mostly criticial
2004 Sep 23
1
Gridbase basic question
All, I have a simple plot(x,y) and I would like to then insert rectangles of some length (in native coordinates) and height fixed to 0.5 in native coordinates. I can't quite get the code right to do this. Can anyone give me a quick example of how to do this? I looked the gridBase index and the tutorial (from R-news?) but just haven't gotten it down yet. > plot(1:10,1:10)
2007 Dec 13
2
use ggplot in a function to which a column name is given
Hi everyone, Hi ggplot users in particular, ggplot makes it very easy to plot things given their names when you use it interactively (and therefore can provide the names of the columns). qplot(x,foo,data=A) where A has columns (x,y,foo,bar) for example but I would like to use this from inside a function to which the name of the column is given. I cannot find an elegant way to make this
2011 Aug 31
2
ggplot2 to create a "square" plot
Dear all, I am using ggplot with geom_tile to print as an image a matrix  I have. My matrix is a squared one of 512*512 cells.  The code that does that is written below > print(v + geom_tile(aes(fill=dB))+ opts(axis.text.x=theme_text(size=20),axis.text.y=theme_text(size=20), axis.title.x=theme_text(size=25) , axis.title.y=theme_text(size=25), legend.title=theme_text(size=25,hjust=-0.4) ,
2015 Mar 10
2
Fwd: samba & Oracle ACFS Issues
On Fri, Mar 06, 2015 at 01:38:26PM +0100, Nacho del Rey wrote: > Hi again Volker (& list) > > I think I am very closer of the problem. Sorry, but without access to this system I can't really say what is going on. Please talk to Oracle for support. Samba is running fine on a huge variety of file systems, and if ACFS gives you locking issues, I would request Oracle to fix their
2015 Feb 11
2
Fwd: samba & Oracle ACFS Issues
On Wed, Feb 11, 2015 at 11:44:24AM +0100, Nacho del Rey wrote: > Ok, it is becoming a nightmare ;-) > Last question Volker > > Is it possible the problem comes from a network device? > At job, we have been suffering problems with a F5 Load Balancer. It seems > that, randomly, it sets the transmission frame to 0 bytes during a while > and routing services don't work very
2016 Apr 15
2
Strange behaviour with ptmx file descriptors
Hi Angel and many thanks for your answer The application still sending & receiving data .- strace over the application: write(1, "\33[1;1H\237#SF \234", 44) = 44 <--it was sent from the application to the terminal, but ssh didn't received this string read(0, "\10", 1024) = 1 <- the client remained sending data and it
2009 Jun 23
2
curvedarrow (some graphics problem)
Hi there, I just wonder how to draw this kind of picture... http://www.nabble.com/file/p24158796/b.jpg http://www.nabble.com/file/p24158796/a.jpg and this is what i have done %%%%% library(shape) library(diagram) curve(sin(x),bty="n",-8,8,yaxt="n",ylab="",xaxt="n",type="n",xlab="") axis(1,labels=F,at=seq(-8,8,1))
2005 Mar 09
4
Lattice device page options-margins
I am using lattice to make figures as pdfs: trellis.device(device = "pdf",file = "Figure6.pdf",color = FALSE) I need to specify some blank space on the left-hand margins (the pages will be bound so we need about 0.5 inch)). I have tried a number of solutions but none seems to work (e.g. par.set). Can this be done when initiating the plotting device? Or is the some other way