similar to: Adding vertical line to histogram and qplot "stacked" plot

Displaying 20 results from an estimated 500 matches similar to: "Adding vertical line to histogram and qplot "stacked" plot"

2009 Jan 28
1
Changing histogram stack in qplot
I've been using qplot pretty successfully to generate stacked histograms.  However, it appears that I need to tweak the colors a little.    I've got three temperature variables (characters not numeric) and I need to change from the default qplot colors to the following: Low = Blue Middle = black High = Red   Here is pseudo code of what I have currently:qplot(Run, data = TestData, breaks =
2006 Apr 10
2
Legend in the outer margin
Dear Rs I have a 3x3 multiple plot. I would like to have a overall legend in the outer right margin. From the help archive, I found that it can be done by setting par(xpd=NA). However, I couldn't find the correct values for x and y co-ordinates for the legend. Please find the code snippet below: par(mfrow=c(3,3), mar=c(4,4,0.9,0.5), oma=c(1,2,2,4),cex.main=1.1)
2006 Apr 30
4
renamed partial won''t render?
hi all this works <%= render :partial => "admin/works/work", :collection => @artist.works %> but this doesn''t <%= render :partial => "admin/works/worklist", :collection => @artist.works %> even though the partial _work.rhtml and _worklist.rhtml are identical. worklist.rhtml throws undefined local variable or method
2007 Mar 12
2
e2fsck hanging
I'm trying to run e2fsck on a ~6TB filesystem which is about 90% full. We're doing backup to disk to this filesystem, and have a number of hard links (link counts up to 90). strace shows: write(1, "Pass 2: Checking ", 17) = 17 write(1, "directory", 9) = 9 write(1, " structure\n", 11) = 11 mmap(NULL, 91574272,
2009 Jul 21
1
legend title in qplot
Hi, I've used the following command in qplot qplot(a$V1,geom="histogram",binwidth=0.15,fill = factor(a$V2),ylab="Frequency",xlab="Rate"); but the title in the legend shows up as factor(a$V2)...how can i change this? -- Rajesh.J [[alternative HTML version deleted]]
2009 Jan 14
1
Help with Plot/Legend
Dear R-Users I have 2 questions: Firstly, If I create a matplot and legend for multiple vectors and then tag another vector on using matlines (e.g. a 'total' of all vectors), is there anyway to add the new line to the legend without recreating it? I have created the plot this way because I would like to define the lty and lwd for the 'total' vector so that it can be
2000 Feb 02
0
Bugs and comments. (PR#410)
Hi, Here are a few errors I found as well as a few comments. 1) In the man page of par: lty: The line type. Line types can either be specified as an integer (0=blank, 1=solid, 2=dashed, 3=dot- ted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings `"blank"', `"solid"',
2013 Sep 18
1
ggplot2: changing strip text in facet_grid and a legend text problem
Hi, Dummy data script and scripts are attached below. I would like to change the plot to look like this:
2005 Mar 18
2
How to create a 'fit' plot
Dear List, As someone who is in the process of trying to migrate from Excel, I'd appreciate any help on this question: I have a data set and want to fit, say, three distributions to it. I would like to create a plot that shows my data points against all three fitted curves (estimated d.f.). Basically, I lookint to creat a plot that looks like the one presented in the attached paper (Figure
2008 Sep 24
1
qplot, stacked area, own colourscheme
Dear list, I would like to apply my own colours to a stacked area plot, done with qplot, but I have not succeeded... What do I have so far (I am dealing with the development of cover of specific groups of plants): library(ggplot2) library(RODBC) channel <- odbcConnect("myusername", case="tolower") sql <- "select trial, cover_of, dateofsurvey, cover from
2011 Jun 12
2
Side by side scatter plots with specified regression lines
I am new and self taught in R, so please bear with me. I want to create two scatter plots side by side. The data set includes measurements from two different countries with 7 treatments over a timeline (x-axis). Problem 1 I want to have each plot to include the data from one of the countries with 7 regression lines of the treatments, but I do no know how to divide the data between them. This is
2023 Feb 21
2
Problem of intercept?
Dear R-experts, Here below my R code working with quite a few warnings.? x11 and x12 are dichotomous variable (0=no and 1=yes). I substract 1 to ignore intercept. I would like not to ignore intercept. How to modify my R code because if I just remove -1 it does not work? y= c(32,45,65,34,23,43,65,76,87,98,7,867,56,45,65,76,88,34,55,66) x11=c(0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,1)
2009 Oct 14
1
change order of bar plot categories
Is this what you want? temp<-c(rep("Low",2),rep("Medium",2),rep("High",2)) light<-rep(c("Dark","light"),3) avg<-dat.avg2[,3] # se<-dat.avg2[,4] dat.avg.temp<-data.frame(cbind(avg,se)) dat.avg.temp<-data.frame(cbind(temp,light,dat.avg.temp)) dat.plot<-qplot(light,avg, fill=factor(temp),data=dat.avg.temp, geom="bar",
2009 Jul 28
2
Density plot in ggplot2
Hi all, I was trying to draw a stacked density plot like that : library(ggplot2); library(plyr) dat <- cbind(rnorm(300), rep(c(1,2), each=150)) ggplot() + geom_density(aes(x=dat[,1], fill=factor(dat[,2]), position="stack")) + xlab("") + ylab("") + scale_colour_manual(name = "Pallet", labels = c("X", "Y")) Here
2013 Feb 20
1
ggplot2 customizing a plot
Dear all, I want some help improve my ggplot as following: Make the plottable area with grid, so is easy one to see where each box refers to x and y values. Add a color bar but with fixed values, that I want to specify. How   I can do those two? Before is some code what I have tried so far. Regards Alex
2013 Feb 25
1
ggplot2 Increase font size
Dear all, I am using the code as below   tdm <- melt(matrixToPlot)    p<- ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value))) +                   labs(x = "Mz", y = "T", fill = "D") +                   geom_raster(alpha=1) +                   scale_fill_discrete(h.start=1) +                   scale_x_continuous(expand = c(0, 0)) +                  
2009 Jan 30
1
Using ggplot2 I need to move the location of legend to on the plot
  Thanks again for the hints about adding the vertical line to the hist plot and in ggplot.  That worked great.    Based on that advice I've been flipping through the ggplot2 doc and ggplot-static\index.html webpage more looking for the answer to the next question.    Unfortunately, I haven't stumbled on a description of how to move around the location of the legend.    Here is what I
2012 Aug 04
2
ggplot2 boxplot help
Hello, I have a data set that looks like this: name G-ID test_id g-id g 1 00077464 C_068131 C_068131 OC_068131 - 2 00051728 C_044461 C_044461 OC_044461 - 3 00058738 C_050343 C_050343 OC_050343 - 4 00059239 C_050649 C_050649 OC_050649 - 5 00001761 C_000909 C_000909 OC_000909 - 6 00005119 C_002752 C_002752 OC_002752 - locs
2000 Feb 29
0
mapping of colornames into hsv: half way done
Ok, now we have the mapping of color names to color codes (see below) and conversion to rgb (something like Ben Bolker's function), but how to convert rgb to hsv? Thanks to Brian Ripley, Peter Dalgaard and Ben Bolker Details below Regards Jens etc/colors.big maps 455 names to rgb in S syntax etc/rgb.txt maps 657 names to rgb in C syntax, but unlike colors() it has mixed upper and
2013 Mar 25
2
Plot Matrix with Data
Hi , I would like to use ggplot2 to plot a matrix as an image. You can copy paste the following Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) lengthOut<-5 Lengths<- 15 library(reshape2) library(ggplot2) tdm <- melt(Data) ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value)),levels=seq(0,1,by=0.1)) +                   labs(x = "MHz", y =