Displaying 20 results from an estimated 20000 matches similar to: "error bars in color"
2010 Jan 12
1
barplot: border color when stacked
Dear R-users,
I am using R version 2.10.1 under windows.
In a barplot, I want to mark one of the bars with a special border color.
For example:
barplot(c(3, 7, 11), border = c(NA, "red", NA))
But how to do this when the bars are stacked?
for example:
barplot(matrix(1:6, ncol=3)) # border of second bar (i.e. the one with total height = 7) should be red again, I try:
barplot(matrix(1:6,
2009 Sep 03
1
putting reference lines or grids into the background of a plot
Dear R-community,
using R.2.9.1, how do you put reference lines or grids into the _background_ of a plot?
For example:
barplot(3:1)
abline(h = seq(0.5, 2.5 ,0.5), col = "red", lty = "dashed")
-> The lines are before the bars (and the line parts going through the bars might be considered as "chart junk", I suppose).
Now, in this toy example I could just do the
2005 Jan 05
1
hist.POSIXt filled bars - axis color changes
Hi all,
I'm plotting a histogram of dates and would like to shade the bars, e.g.
hist(.leap.seconds,"years",col='gray',freq=T)
-but the axis color also changes, how do I prevent that?
thx in advance
Janus
[[alternative HTML version deleted]]
2007 Nov 30
2
using color coded colorbars for bar plots
Hello R Fundi,
The poetic title of this post is a request for help in regard to a
"simple" plotting question.
I have displayed the mean observations of a series variables using
barplot(). On the same figure I have colored the bars to represent the
Standard deviation of each variable using color.scale(). Now I wish to
add a graduated colorbar (legend) that corresponds to the colors
2011 Sep 14
2
Color barplots with a conditional?
I've made a barplot that has several bars. I'd like the bars to be colored
according to the type of category they are in. Is there a way to put a
conditional into the color parameter in barplot?
i.e. if data$category[i] == 1, color the bar red
Do I need to generate the coloring sequence before the plot code first?
Thanks!!
--
View this message in context:
2009 Feb 26
1
two colors and putting lines on bar plots
Hi all,
I want to represent two categories with one color and have other categories
a different color on a bar plot.
I can do this using for one category/number using the ifelse call in col but
how to extend to two categories/numbers?
barplot(dataframe$vector_o_numbers, col=ifelse(dataframe$vector_o_numbers ==
00, "red", "black"), names.arg=dataframe$labels)
For example if
2011 Jul 24
1
barplot colors
Hi,
In barplot(height, col = ...), the col = vector recycles so that the
same colors are used for each bar. I would like to use different colors
in different bars (corresponding to another piece of information, here,
the region of the country being represented).
For example,
x = matrix(c(5,2,3,1),nrow=2)
barplot(x,col=1:4)
will draw two bars with two segments each, but each colored red and
2003 Feb 24
2
fill prob. in legend
Hi,
I'm trying to construct a legend which has four lines of text and associated
symbols. The first two symbols need to be normal lines which vary only in
colour. The second two symbols should have filled boxes. How do I suppress
the fill boxes in the first two lines?
J.
2011 Jul 27
1
color of error bars in Dotplot (Hmisc)
Hello!
In a grouped Dotplot, is there any way to set the color of error bars
to be the same as the corresponding symbols?
Example data:
require(lattice)
require(Hmisc)
data(barley)
Dotplot(variety~Cbind(yield, yield+2, yield-2)|year, groups=site,
data=barley)
I experimented with changing trellis settings of plot.line (as
mentioned in the Hmisc documentation) as well as col.line settings in
2005 Dec 13
2
Labeling a range of bars in barplot?
Hi, I am plotting a distribution of (ordered) values as a barplot. I
would like to label groups of bars together to highlight aspects of the
distribution. The label for the group should be the range of values in
those bars.
As this is hard to describe, here is an example;
x <- rlnorm(50)*2
barplot(sort(x,decreasing=T))
y <- quantile(x, seq(0, 1, 0.2))
y
plot(diff(y))
That last
2008 Jun 05
4
Wine menue entry missing after source installation
Hi,
because wine 1.0 rc3 isn't available via yum (I'm using Fedora 9 btw.) I've installed it via Source-Code. In this case I downloaded it, run ./configure --verbose, followed by make depend, make and make install.
It's installed and seems to run, but there is no entry in Applications.
Have I forgotten to install something for that?
best regarts
Heinrich
2008 Feb 24
0
Color of CI bars in Hmisc::Dotplot()
Dear R-helpers,
(1) I can't figure out how to tell Dotplot that I want the colors of
the CI bars to be the same as the colors of the dots.
For example:
t2a.ci3 <- data.frame(est = c(7, 20, 75), lower = c(-9, 0.5, 42),
upper = c(22, 39, 109))
mypal <- c('skyblue3', 'mistyrose3')
condNames <- c('noise', 'horn', 'marimba')
Dotplot(1:2 ~
2019 Nov 20
1
Smbstatus shows same share for same client several times - related to locking issues?
Hello,
we frequently face locking issues with office applications and documents on samba shares. The office applications claim that the document is locked and hence no write access is possible. I can check on the samba server that there is no concurrent access/locking from other computers or users. It looks like the same user holds some lock and is denied to access the document because it?s
2011 Jul 06
4
Showing which bars in a bar chart are significantly different
Hello,
a probably rather stupid question to which I can't find an answer:
I have a bar chart, and I want to present which bars are significantly
different by placing a line with an asterisk above then (similarly to fig. 3
in: http://jnm.snmjournals.org/content/46/4/574.figures-only).
Does anyone have a reference where can I find some instructions how to learn
this?
Thanks a lot!
Omer
--
2010 Sep 09
5
Highlighting a few bars in a barplot
Hello,
I have a bar plot where I am already using colour to distinguish one set
of samples from another. I would also like to highlight a few of these
bars as ones that should be looked at in detail. I was thinking of
using hatching, but I can't work out how or if you can have a background
colour and hatching which is different between bars. Any suggestions on
how I should do this?
Thanks
2005 Aug 02
2
net join echoes root password
Hi list,
# net join
asks for the root password (seems to be new).
This is not a problem, but when i do:
# ssh root@remote_host net join mydomain
the root password is echoed on the terminal.
Is this expected behaviour? (I hope not).
Regards,
Heinrich Rebehn
University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax
2010 Oct 28
2
replace text at certain positions in a file
Hello,
I am working with R version 2.10.1 under windows.
In a text file, I need to replace all characters at certain column positions with blanks.
For example, say the file contains two lines and looks like this:
ab34cd78e
fg3 hi78j
I'd like to replace everything at positions 3-4 and 7-8 with blanks, so the output should be:
ab cd e
fg hi j
[I'm not sure if this is really an R
2009 Aug 11
3
Lattice: How to do error bars
I am trying to add 2 stdev error bars to lattice type plots:
panel.ebar<-function(x,y,dy=NULL,...) {
panel.xyplot(x,y,...)
panel.segments(x,y-dy,x,y+dy,...)
}
Then:
xyplot(y~x|fc,data=dat,dy=dat$dy,panel=panel.ebar)
This adds error bars but they are not conditioned on the factor fc.
xyplot(y+I(y-dy)+I(y+dy)~x|fc,data=dat)
This produces 3 series of points in different colors, conditioned
2011 Dec 05
2
bit error robustness
Hello everyone,
I'm evaluating the Celt in terms of robustness against bit errors.
So what I have done is encoding a wav file using the \tools\celtenc.exe
and then manipulated the wav file according a desired bit error rate or
burst error length.
But the Celt decoder stops decoding with the first bit I manipulated even
if this bit is not in the header.
So is there a way to do the test
2004 Mar 30
5
optim-Bug (PR#6720)
Full_Name: Dr. Hans A. Kestler
Version: 1.8.1.
OS: Linux, Win, Mac OSX
Submission from: (NULL) (134.60.73.116)
The code below produces after a different number of iterations i the following
error:
Error in optim(par = rep(0.5, length(edges)), loglik, method = "L-BFGS-B", :
non-finite value supplied by optim
This was reproducible on different machines (Mac G4 OSX, AMD Opteron