Displaying 20 results from an estimated 20000 matches similar to: "boxplot colors"
2012 Oct 03
1
can't see colors with "col" in boxplot()
Hi,
I am trying to color the data points on my boxplot but I only get the
default black.
Not sure why. Any ideas?
Thank you,
Mark
Here is my code.
> dat.g100 <- dat.sg[100,] # selected gene (row) from a dataframe of
37 columns
> d1 <- as.matrix(dat.g100[,1:18]) # subset 1
> d2 <- as.matrix(dat.g100[,19:37]) # subset 2
# boxplots
> par(mfrow=c(2,1))
> boxplot(d1,
2009 Oct 13
2
multiple groups with different colors in boxplot
Can anybody help me on how to boxplot multiple groups with different color?
Say, I have 3 groups of data, each group with 2 boxes, and I'd like to have
the following layout in the boxplot:
red, red, green, green, blue, blue
thanks in advance.
--
View this message in context: http://www.nabble.com/multiple-groups-with-different-colors-in-boxplot-tp25867267p25867267.html
Sent from the R help
2003 Apr 23
1
Text on a boxplot graph
Hi all,
Could anybody help me figure out how to write text on a boxplot. I have to
plot 9 boxplots side by side on a single graph. On the x-axis I write numeric
values with the 'names' argument but I'd like to add one label (character
value) in the middle of each box. I know how to use the text() function for
regular y~x plots but in this particular case, I'm kinda lost...
2010 Oct 11
1
Lattice::bwplot unexpected behaviour when using vector of colors
Hi,
I'm trying to produce colored boxplots using lattice::bwplot function. I need to plot each boxplot in the panel with a specific color. Naturally I used a vector of colors and expected to see colored boxplots. Although the boxplots were colored, the color of whiskers and the boxes do not match. Here is an example:
d = data.frame(y = rnorm(100), x=1:4)
box.color <-
2010 Oct 11
1
Lattice::bwplot unexpected behaviour when using vector of colors
Hi,
I'm trying to produce colored boxplots using lattice::bwplot function. I need to plot each boxplot in the panel with a specific color. Naturally I used a vector of colors and expected to see colored boxplots. Although the boxplots were colored, the color of whiskers and the boxes do not match. Here is an example:
d = data.frame(y = rnorm(100), x=1:4)
box.color <-
2011 Oct 04
1
ggplot2: changing default colors of boxplot
Hi,
I wanted to change the default colors appearing in boxplot. For example, the
following code (from the package/documentation):
===========
library(ggplot2)
p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_boxplot(aes(fill = factor(am)))
===========
Gives the default colors. What do I need to do to modify this so that:
1. Change the colors from green and red to blue and black
2. Only
2012 Sep 24
3
boxplot of different colors
Hello,
I am making a boxplot of 13 boxes.
I tried to color the box using 13 colors but failed.
Only red and brown were displayed.
Green, blue, and grey disappeared.
Please kindly advise modification after checking the code below.
Thank you in advance.
Elaine
R code
# data input
dataN
<-read.csv("H:/a_mig_distance_B_NB/R_data/Mig_bird_586_20120925.csv",header=T,
row.names=1)
2011 Aug 18
1
Specifying data point locations on x-axis using boxplot() and points()
Hi all,
I would like to ask a question with regard to R graphics. I am currently
trying to add data points in boxplots using points(). In my script, I add
up boxplots three times using add=TRUE. I use points() every time I add
boxplots, and I see data points. However, I see all data points are clustered
at three specific points on x-axis; the locations of the data points
are not overlapping with
2010 Oct 07
2
problem with colors
Hi,
I have a data set of 47 columns. I would like to create a boxplot for each
column, each boxplot of a different colour.
So I created a vector "col1". This vector has a subset of the colors
returned by color()- "red", "cyan", "green" etc.
Now I use the command: boxplot(dataset, col= col1) expecting to see 47
boxplots, each of a different colour.
Here is
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.
2009 Sep 02
1
Problems with Boxplot
Hello,
I have been having difficulty getting boxplot to give the output I want -
probably a result of the way I have been handling the data.
The data is arranged in columns: each date has two sets of data. The number
of data points varies with the date, so each column is of different length.
I want to get a series of boxplots with the date along the x-axis, with
alternating colors, so that it
2012 Mar 08
2
Boxplot Fill Pattern
Hello R Help!
I would like to make a legible boxplot of tree growth rates for each of
seven tree species at each of seven different sites. It's a lot of data to
put on one figure, I know. I made a beautiful, interpretable figure using
color, but my target journal can't deal with color figures. I can use seven
shades of grey to fill the boxes, but the figure then becomes
uninterpretable -
2008 Jun 21
2
boxplot problem
Hello everyone,
I am trying to plot a boxplot but am coming up with the error :
"could not find function dat" I have used the following code.
dat<-read.table(file="C:\\Documents and Settings\\.......txt",header=T,row.names=1,blank.lines.skip=F,na.strings="NA")
file.show(file="C:\\Documents and Settings\\......txt")
2010 Aug 05
2
colour of label points on a boxplot
Hi all,
I have 6 datasets(dataframes Assem_ContigsLen7 through all_ContigsLen12)
containing 3 columns (contig_id, contig_length, read_count).
Each dataset is composed of 3 types of contigs (assemblies of genomic
fragments), 1- all Bacterial fragments, 2 - all Viral fragments, 3 -
mixed fragments.
I identified the type of contig through a merge with another table with
just contig_id and
2011 Nov 17
1
Small inconsistency with boxplot
Dear R-core team,
I think I found a small inconsistency in the boxplot function. I don't want to post it as a bug since I'm not sure this might be considered as one according to the FAQ --- and this is not a major problem. Don't hesitate to tell me if I'm wrong.
If you try to do a boxplot on a matrix and set the "at" argument to some vector different from 1:n, n is the
2004 Feb 16
1
2 bwplots - different colors
Hi all,
I would like to draw one picture which would show two different types of
boxplots using the same axes (kind of on top of each other). However, I
would like to plot each boxplot using a different color or different
shading inside the box, so they could be better distinquished from each
other... Could you help me?
Here is an example of the plot I have so far. I was only able to change
the
2005 Jul 04
1
question about boxplot axis
Hi:
I have a question making side by side boxplot.
My response is numeric and I want to make a side by
side boxplot of it accroding to a factor vector. So,
there are several boxplots on the same plot. Each
boxplot is with respect to one level for a factor. The
levels of
the factor are some characters. When I make the plot,
the boxplots are arranged according to the alphabetic
order of the
2010 Nov 29
1
surpressing tickmarks / labels x-as for two sets of boxplot (plotted as stacked boxplots)
Hello,
I am trying to plot two sets of boxplots together. These are estimates of two
experiments and?seven?factors.
The results of the two experiments I want to plot as boxplots stacked to each
other.
Therefore I plot first the results of the first experiment; and next with the
add option the second set of boxplots.
The boxplots are plotted at 'at = 1:7 - 0.15 for the first experiment and
2010 Mar 29
1
Inverse plot colors?
Hi, I'm looking for a way to get white boxplots on a black
background. The following is insufficient because although the box is
white, I can't figure out how to change the whisker color to white.
x <- rnorm(100)
par(bg = "black")
boxplot(x)
boxplot(x, col = "white", notch=T)
Is there no way to specify inverse colors and then not change
background etc.?
I'm
2008 Feb 04
7
adding the mean and standard deviation to boxplots
Dear list,
How can I add the mean and standard deviation to each of the boxplots using the example provided in the boxplot function?
boxplot(len ~ dose, data = ToothGrowth,
boxwex = 0.25, at = 1:3 - 0.2,
subset = supp == "VC", col = "yellow",
main = "Guinea Pigs' Tooth Growth",
xlab = "Vitamin C dose mg",