search for: gray20

Displaying 16 results from an estimated 16 matches for "gray20".

Did you mean: gray10
2009 May 24
2
help with replacing factors
Hi, In the example dataset below - how can I cahnge "gray20", to "blue" # data black <- rep(c("black","red"),10) gray <- rep(c("gray10","gray20"),10) black_gray <- data.frame(black,gray) # none of this desperate things works # replace(black_gray$gray, gray=="gray20","red")...
2008 May 19
2
labels in multiple plot
My code is the following: point_type<-c("black","gray20","red"....) ... for (i in 1:dim(m)[1]) { par(pch=(18+i)) par(fg=point_type[i]) plot(m[i,], type='b', ylim = c(lower, upper), type = "l", ...) par(new=T) } Now I need to add an 'explanation' to each pch. I would have a...
2009 May 15
2
Additional points to scatter plot show up at wrong place
...atter plots. The plot is drawn with the scatterplot() function from the car library: scatterplot(data[,2] ~ data[,1], data=data,smooth=F,reg.line=F,xlim=c(0.5,1),ylim=c(0.5,1),ylab="ML",xlab="Freq",cex.lab=1.9,cex.axis=1.8) after that, I draw one line with abline(0,1,col="gray20") which works perfectly fine. now I want to add, say the point (0.6,0.6) to the plot with points(c(0.6),c(0.6)). The point is plotted, but not exactly at the proper coordinates, but at something like (0.55,0.55). When I use the plot() function to make the scatter plots, this problem does not...
2012 Nov 30
3
(no subject)
...new=TRUE) # Define cars vector with 8 values cars <- c(1,1,1,1,1,1,1,1) # Define colors in each sector color1 <- c("grey80","grey80","grey80","grey80","gray80","grey30","grey20","gray10" ) ## gray10=<0.0001, gray20<0.001, gray30<0.01, gray40=<0.05, gray 80=>0.05 # Putting sector levels car_labels <- c(1,2,3,4,5,6,7,8) car_labels <- paste(car_labels,sep="") # Create a pie chart with defined heading and custom colors # and labels pie(cars, main="Sectors", col=color1, labe...
2009 Oct 26
1
Unable to get Legend with survplot rms package
...on a survplot from the rms package. I am plotting the following: survplot(survest(fita), n.risk=T, conf='none', cex.n.risk=.85, dots=T, col='gray10', lty=2) survplot(survest(fit), n.risk=F, conf='none', add=T) survplot(survest(fitb), n.risk=F, conf='none', col='gray20', add=T, lty=4) I have tried to place 'label.curves=list(method="arrow", cex=.8)' and others as suggested in ?survplot in any and all of the above commands, but I do not get a legend regardless of whether I try to plot only one or several lines as above. Any suggestions as to...
2005 May 04
1
Plotting means and confidence intervals by group factor using lattice graphics?
...graph. I can not find any working lattice examples. Maybe a custom panel function is the answer, but that is a bit beyond me for now. The individual plots within the lattice graph could look like this: # Example with confidence intervals and grid hh <- t(VADeaths)[, 5:1] mybarcol <- "gray20" ci.l <- hh * 0.85 ci.u <- hh * 1.15 mp <- barplot2(hh, beside = TRUE, col = c("lightblue", "mistyrose", "lightcyan", "lavender"), legend = colnames(VADeaths), ylim = c(0, 100), main = "Death Rate...
2002 Jun 24
1
barplot
Hi, a couple of simple graphics questions: 1. I have a little function that makes bar plots. Now I would like to limit the Y-axis outside this function (that means after calling the barplot() command) depending on the data to be plotted . Does anyone know how to do this ??? 2. When using barplot() and limiting the yAxis, R draws the bars below the x-axis. How can I avoid this problem ??
2009 Apr 24
1
font size relative to graphic
I am printing numbers onto horizontal bars in a bar plots, but I am finding it difficult to make the number always the right size. If there are more bars, the bars get narrower and the font is too big. I also find that if I change the size of the graph, the bars will get wider or narrower and the font stays about the same size. The result depends on whether I view the graph in X11 or in
2012 May 09
12
Matrix heatmap
I would like to organize my data as follows: I have a table that contains various data, and the numbers represent a level of similarity between these data, eg RF00013 has 100% similarity with the data RF00014. I would leave my table as a heatmap where darker colors represent higher similarity, and the lighter colors represent less level of similarity. I'm using version 2.11 of R. these
2012 Nov 14
2
Multiple groups barplot
Hi everyone, I have a certain number of samples and I want to visualize the groups those samples belong to. For example, suppose to have three variables, age, sex, and smoker/nonsmoker, and three samples, S1, S2, S3. S1 is 35, male, nonsmoker S2 is 24, female, nonsmoker S3 is 24, female, smoker at the end I have the following data frame: S1 S2 S3 age 35 24 30 sex M F F smk N N S What I
2010 Feb 25
4
different types graphs
>library(RODBC) >ch<- odbcConnect("durga") > sqlQuery(ch, paste("SELECT * from emp")) >sqlQuery(ch, ("SELECT * from xyz")) store revenue year_y 1 bigbazar 787875 2008 2 more 87876 2008 plot(revenue ~ year_y, data=xyz, pch=16) can i get any diffrent types of graphs like pie charts, bar
2012 Feb 19
2
barplot with more than 1 variable
Dear R listers, I am trying to produce a simple (for a stata user) barplot with 4 countries on the x axis, each country observed in 2 subsequent years and 3 variables. Basically, I should have three bars for each year for each country. I am attaching the chart I made in Stata, but I am not sure you'll manage to see it! I did the following: #here I create the data-set TUSE2. The vectors mw, st
2010 Sep 16
3
Help with customizing a histogram figure
Hi all, Please consider the following code: require(plotrix) l <- list(rnorm(50),rnorm(50,sd=2),rnorm(50,mean=3)) multhist(l) I have two things I need help with: (1) In the output, there are empty spaces on the x-axis. How would I eliminate these spaces? I want a nice, smooth, empty-spaceless x-axis. (2) How could I add tracing lines to each histogram? I am undoubtedly using the wrong
2000 Feb 29
0
mapping of colornames into hsv: half way done
...212121", "gray14", "#242424", "gray15", "#262626", "gray16", "#292929", "gray17", "#2B2B2B", "gray18", "#2E2E2E", "gray19", "#303030", "gray20", "#333333", "gray21", "#363636", "gray22", "#383838", "gray23", "#3B3B3B", "gray24", "#3D3D3D", "gray25", "#404040", "gray26", "#424242&q...
2007 Oct 04
5
A rebel boxplot question
Dear R list members I am trying to improve a boxplot with 2 data sets. I run somethinkg like boxplot(data1 ~ month, add=F, col = "red", ...) boxplot(data2 ~ month, add=T, col = "blue", ...) The problem is that the data from February are missing for data2, so R think that must take little more space between the data classes in data 2 and then both data gropus are not aligned.
2010 Jul 05
3
Problemas para graficar barras de error y fechas en el eje-x (SOLUCIONADO)
...gt;> >>> Prueba a utilizar "segments" y un ejemplo de su uso, justamente como >>> líneas de error, lo tienes en la función "barplot". >>> >>> ++++++++++++++++++ >>> hh <- t(VADeaths)[, 5:1] >>> mybarcol <- "gray20" >>> mp <- barplot(hh, beside = TRUE, >>> col = c("lightblue", "mistyrose", >>> "lightcyan", "lavender"), >>> legend = colnames(VADeaths), ylim= c(0,100), >>...