Displaying 20 results from an estimated 10000 matches similar to: "equation of a line or curve"
2008 Aug 05
2
95% CI bands on a Lowess smoother
Hi there,
I'm plotting some glass RI values just by plotting
plot(x)
then I put on my lowess smoother
lines(lowess(x))
now I want to put on some 95% Confidence Interval bands of the lowess
smoother, but don't know how??
Thanks
--
Gareth Campbell
PhD Candidate
The University of Auckland
P +649 815 3670
M +6421 256 3511
E gareth.campbell@esr.cri.nz
gcam032@gmail.com
[[alternative
2006 Jan 04
5
multiple lowess line in one plot
I'm using this code to plot a smoothed line. These two columns of data
really represent 4 groups and I'd like to plot a separate line for each
group but have them all in the same plot. The R-Docs for lowess do not
seem to indicate some type of "GROUPS=var_name" option. What would be
the syntax for this?
plot(AWGT ~ lipid )
lines(lowess(lipid , AWGT, f=.8))
--
Dean
2004 Jan 21
1
Please make lowess() generic (was: Reorganization of packages in the R distribution)
As I've mentioned a number of times. I find it very useful to have lowess()
become a generic function so that a lowess.formula() can be defined.
Below is a patch that makes both changes, as well as updating the
corresponding help documentation.
Gregory R. Warnes
Manager, Non-Clinical Statistics
Pfizer Global Research and Development
Tel: 860-715-3536
? DESCRIPTION
? Makefile
?
2008 Feb 03
3
Drawing a loess line
Dear all,
To draw a lowess line on a plot was a piece of cake; to draw a loess
line, however, seems not that easy. Is the loess plotting implemented
at all in relation to the loess function, or do I have to look in
add-on packages?
Thanks,
Marcin
2009 Feb 02
1
xyplot with lowess curves
I am trying to change the attributes of the lowess lines fit to an
xyplot command, but have been unsuccessful in my search of the online
help. Right now, both the points and lowess line come out in the same
color (blue). I am unsure how I can change the properties of the lowess
line separately.
xyplot (
SnowLineElevation ~ Year | Model,
data = data,
ylim = c(0,1800),
type =
2020 Sep 06
1
Error in ?lowess
The lowess() help page refers to documentation in "src/appl/lowess.doc".
This was moved to "src/library/stats/src/lowess.doc" in 2007. This
patch fixes it:
Index: src/library/stats/man/lowess.Rd
===================================================================
--- src/library/stats/man/lowess.Rd (revision 79137)
+++ src/library/stats/man/lowess.Rd (working copy)
@@
2008 May 20
1
S4 generic for lowess
Hi,
A lowess method is defined in our package for one of our S4 classes. To
explicitely define the generic this is being used
if (!isGeneric("lowess"))
setGeneric("lowess", useAsDefault = lowess)
This works fine for many other methods inherited from various R
packages. In this case a warning is issued in R CMD check:
* checking R code for possible problems ... NOTE
2001 Mar 12
2
residuals from lowess fit
Colleagues
----------------------------------
System info:
R version rw1022 on NT
ESS v. 5.1.18 using emacs ver. 20.4
----------------------------------
I would like to access the residuals from a lowess fit (function lowess() )
as an aid to assessing whether I am over-smoothing or under-smoothing
a dataset (as in Cleveland's book "Visualizing data", section 3.3)
Unless I
2010 Oct 06
2
Pointing to a specific place on the x-axis with an arrow
Hi all,
I am trying to do something simple, but which is deviling me. I want to add an
up-arrow to the x-axis, pointing to a specific location on the axis. I want the
arrow to be as large as possible.
Here is where I'm at with my code:
#this part if from the ?plot example:
require(stats)
plot(cars)
lines(lowess(cars))
#I am trying to use mtext to add the arrow... but I don't know how
2011 Oct 22
1
How to it a "loess curve" and obtain the equation in R?
Hi!
How can I fit a loess curve to an array (384 x 2).
How can I obtain the equation for thi fi?
Thanks in advance.
--
View this message in context: http://r.789695.n4.nabble.com/How-to-it-a-loess-curve-and-obtain-the-equation-in-R-tp3927622p3927622.html
Sent from the R help mailing list archive at Nabble.com.
2009 Mar 23
1
Graphic with several curves
Hi R users,
Imagine the folowing data frame
1990 1991 1992
1 5 20 6
2 15 1 11
3 3 14 22
4 20 8 55
5 10 3 14
Is there a way to build a graphic in which:
- 1 curve represents the observation 1 during 1990 & 1992
- 1 curve represents the observation 2 during
2010 Oct 26
2
anomalies with the loess() function
Hello Masters,
I run the loess() function to obtain local weighted regressions, given
lowess() can't handle NAs, but I don't
improve significantly my situation......, actually loess() performance leave
me much puzzled....
I attach my easy experiment below
#------SCRIPT----------------------------------------------
#I explore the functionalities of lowess() & loess()
#because I have
2008 Nov 15
3
I want my row name to be a variable
Hi R users
Imagine this data.frame:
>X
Var1 Var2
A 22 13
B 5 2
C 12 8
D 1 99
A,B,C,D are the rows names (or index)
Is there a way to create a new variable in this data frame
which name is Var3 and which contains the rows names:
Var1 Var2 Var3
A 22 13 A
B 5 2 B
C 12 8 C
D 1 99
2003 Apr 10
3
A Question on lowess() function
Hi, all,
I want to use lowess(x, y) where x and y are vectors of length of 4000+. In
fact, x and y are log of some vectors. So, some of the elements are NaN.
lowess() can not take away those elements then do the fitting. It will give
the error message and do nothing.
1. Can anybody tell me how to get rid of those NaN's and use lowess()?
2. How to get the LOWESS fitting values for any
2006 Jan 04
1
Newbie question--locally weighted regression
I have a dataset, a time series comprising count data at five minute
intervals. These are the number of people who voted at a particular
voting place during a recent election. The next step is to smooth the
data and estimate a demand vs time-of-day function; the problem is of
interest in preventing long lines at voting places. I am using the R
Project software.
However, I am not a statistician,
2003 Nov 26
1
lines(lowess()) trouble
hi: apologies for taking up everyone's time. my problem is probably
documented somewhere, but I again cannot find it. (which reminds me: I cannot
find a search engine that allows me to search the archives of this very useful
mailing list.)
* it seems that lines(lowess()) fails to plot certain line segments. (and,
what does it do at the x-min and x-max of a data set?) Rather than
2009 Mar 14
1
Problem with figure size when embedding fonts
Dear Colleagues:
I need to make a graphic that uses the Nimbus rather than Helvetica font
family so that the font can be embedded in the encapsulated postscript
file. This is to satisfy a requirement from a journal for electronic
submission of figures. I do the following:
postscript('lowess.eps', onefile=FALSE, pointsize=18, horizontal=FALSE,
family='NimbusSan')
2001 May 23
3
New generic functions in "R base" {was `truncate'}
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---2088752589-1867062326-990643072=:2129
Content-Type: TEXT/PLAIN; charset=US-ASCII
1) What are the issues with making _existing_ functions in base into
generics?
EG, I've recently
2012 Sep 24
2
add lowess predicted line to scatter plot
Hi,
I have a scatter plot of the variables GNI and Lifeexp (Gross National
Income and Life Expectancy, both metric). So I plotted them and I want to
add a regression line and a lowess line. I use lowess and not loess because
I have missing values. My code:
plot(GNI,Lifeexp)
abline(lm(Lifeexp~GNI), col="red")
y.loess<-loess(Lifeexp~GNI,na.
action = na.exclude)
2023 Mar 23
2
loess plotting problem
For some reason the following code is not plotting as I want it to. I want
to plot a "loess" line plotted over a scatter plot. I get a jumble, with
lines connecting all the points. I had a similar problem with "lowess". I
solved that by dropping "NA" rows from the data columns. Please help.
library(stats)
attach(gini_pci_wdi_narm)
plot(ny_gnp_pcap_pp_kd, si_pov_gini)