Displaying 20 results from an estimated 3000 matches similar to: "how to add error bar to the data in R?"
2006 Aug 21
4
question about 'coef' method and fitted_value calculation
Dear all,
I am trying to calculate the fitted values using a ridge model
(lm.ridge(), MASS library). Since the predict() does not work for lm.ridge
object, I want to get the fitted_value from the coefficients information.
The following are the codes I use:
fit = lm.ridge(myY~myX,lambda=lamb,scales=F,coef=T)
coeff = fit$coef
However, it seems that "coeff" (or "fit$coef") is
2008 Mar 13
1
how to generate bar charts with the standard deviation
Hi,
I have the two vectors mean and sd of individual columns, but I am unsure
how to generate bar charts with the standard deviation, even after looking
the help of barplot and barplot.2.
[[alternative HTML version deleted]]
2004 Jul 23
2
graphing with error bars
I am not able to find information about doing line plots with error bars in the R- help information.
Would someone like to tell me if this can be done in R and either get me started or lead me
to information about how to do the error bars?
Thanks,
Lana
2007 Dec 05
1
Plotting error bars in xy-direction
Dear R-help,
I am looking for a function that will plot error bars in x- or y-direction (or
both), the same as the Gnuplot function 'plot' can achieve with:
plot "file.dat" with xyerrorbars,...
Rsite-searching led me to the functions 'errbar' and 'plotCI' in the Hmisc,
gregmisc, and plotrix packages. As I understand the descriptions and examples,
none of
2006 Aug 19
2
question about cbind()
Dear all,
I have a question about how to get a matrix by combining a large number of
columns from a data file. Suppose I read a file which have 1000 columns
by:
test = read.table("dat.txt", header=F)
I know I could use "cbind()". It's easy to do when the number of columns
is small (i.e. cbind(test$V1, test$V2)). But how about build a matrix "X"
by combine the
2006 Jul 31
4
question about dataframe ("sensory") in PLS package
Dear all,
I am trying to my dataframe for the PLS analysis using the PLS package.
However I have some trouble generating the correct dataframe. The main
problem is how to use one name to represent several columns in the
dataframe.
The example dataframe in PLS package is called "sensory". I cannot
directly read the data file since it's a binary file. If I use
2010 Apr 21
1
Adding error bars to xyplot()
Hi,
I want to add error bars to a plot generated with xyplot. I've tried
both errbar() and plotCI(), but in both cases the points are not in the
same place. It's as if the two functions are using a different frame of
reference for the plotting area.
for example:
means <- c(92.5, 92.25, 90.9, 91.0, 94.15, 90.05) #means
time <- c(1,1,2,2,3,3) #occasion variable
group <-
2001 May 24
2
New Package: gregmisc
I've thrown a couple of useful functions into a new package "gregmisc" and
uploaded them to ftp://ftp.ci.tuwien.ac.at/incoming/gregmisc_0.1.1.tgz
Here's DESCRIPTION:
Package: gregmisc
Description: Misc Functions written/maintained by Gregory R. Warnes
Title: Greg's Miscellaneous Functions
Version: 0.1
Date: 2001/05/24
Depends: R
Maintainer: Gregory R. Warnes
2003 Dec 20
7
error bars around a point
All
Is there an R command to produce error bars around
a plotted point. Crawley's book uses the command
error.bar() but my version of R rejects it. Must be an
S+ command(?).
Thanks
REX
[[alternative HTML version deleted]]
2011 Jun 03
2
Y error bars, dates on the X-axis
Dear forum,
Does anyone know any functions for plotting vertical error bars, if the
x-axis variable is a date?
I can produce a pretty plot with dates on the x-axis, if I don't want to
include error bars. I can also produce a nice plot with error bars, if I
just use Julian days for the x-axis, but I'd much rather have the actual
dates.
I have tried writing my own function, plotCI
2002 Jun 17
3
Error bars.
There was an inquiry on this list recently about plotting some simple
error bars on a graph. Now Splus has a function (error.bar ---
originally written by Sue Clancy of DMS, CSIRO, I believe) to do this
job virtually at the touch of a key. (Well a few keys. :-) ) The
error.bar function is written completely in raw S --- no calls to
``.Internal'' or anything like that. So it would be
2004 May 09
2
Using known errors and error bars
Hi,
I'm now to R and hope (actually, I'm quite sure) you can help me. I made
an experiment and measured two values. As I know the errors of these
values I want to use them with the linear regression,
eg
Value A
1.1+-0.02
1.9+-0.05
3.05+-0.03
4.0+-0.01
5.1+-0.06
Value B
4.2+-0.14
5.3+-0.05
6.8+-0.11
7.9+-0.01
8.5+-0.02
lm(B~A) does the linear regression but how can I
2003 Jul 09
2
Showing limits on line graphs
Is there a function that would allow me to create a line graph of some central tendency, such as mean, with limits indicated by a vertical line at each data point, i.e. SD? It's a fairly common type of graphic, but in looking through examples I have been able to find, I have found no function for such a graph.
Thanks in advance,
Harvey
2003 Feb 28
1
Error bars for interaction plots
How do I add error bars to an interaction plot of means?
Thanks
2009 Apr 30
3
Curved arrows
I'm trying to draw an arrow with a curved shaft on the graph as a straight
one looks messy on a detailed graph. I've looked in arrows but it doesn't
seem to give an option. larrows doesn't look much more promising. I had a
look in the archive and couldn't find anything. Any thoughts?
Thanks
Paul
--
View this message in context:
2008 Jul 11
2
Problems with Package Installation.
I am having difficulty installing packages. For example, here I have tried to
install "gplots" but to no avail. I have tried multiple mirrors and
different packages (errbar) but after installation I seem to be unable to
access any of the commands or help pages. I am a little concerned about the
'lib' missing message but this has been present for previous successful
package
2005 Sep 20
5
Neat way of using R for pivoting?
Hi,
I'd like to use R to do what excel pivot tables do, and plot results.
I've never used R before, and I've managed to do something, but it's quite a
lot of code to do something simple. I can't help but think I'm not "Doing it
the R way".
I could be using R for the wrong thing, in which case, please tell me off.
I was hoping something like plot(by(t,
2002 Jan 25
4
How to add error bars to plot(x,y)in R?
Dear R Experts,
Is there a way in R to add an error bar (say in the y direction) for each data point?
Thanks
Ming Chow
--
__________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help",
2002 Jan 25
4
How to add error bars to plot(x,y)in R?
Dear R Experts,
Is there a way in R to add an error bar (say in the y direction) for each data point?
Thanks
Ming Chow
--
__________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help",
2000 Nov 08
4
How to plot error bars
I'm a newcomer to R. I can't seem to find any documentation how to add
error bars to points in scatter plots. I guess I could plot the points,
then compute and plot line segments in the X and/or Y directions to
represent the errors?
- Mike
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read