Displaying 20 results from an estimated 20000 matches similar to: "Gnuplot fit function in R"
2010 Jul 08
2
Calling Gnuplot from R
Hi,
I am wondering if there is a way to call Gnuplot from R and/or if anyone can
recommend a package on CRAN capable of doing this?
Thanks,
Chris
PS - Please cc me on the response.
[[alternative HTML version deleted]]
2008 Aug 22
1
R and GNUPLOT
Hello,
I am trying to send commands to GNUPLOT to load a .plt file that was generated with a C++ software module called with R, and to replot.
I am able to open the program with shell.exec (below) but I am at a loss at what do next. Any suggestions??
shell.exec("C:\\ gnuplot \\ bin \\ wgnuplot.exe")
Thanks
2004 Aug 25
3
Beginners Question: Make nlm work
Hello,
I'm new to this and am trying to teach myself some R by plotting
biological data. The growth curve in question is supposed to be fitted
to the Verhulst equation, which may be transcribed as follows:
f(x)=a/(1+((a-0.008)/0.008)*exp(-(b*x)))
- for a known population density (0.008) at t(0).
I am trying to rework the example from "An Introduction to R" (p. 72)
for my case and
2007 Nov 20
1
How is the Gauss-Newton method compared to Levenberg-Marquardt for curve-fitting?
Hi,
It seems to me that the most suitable method in R for curve-fitting is the use of nls, which uses a Gauss-Newton (GN) algorithm, while the use of the Levenberg-Marquardt (LM) algorithm does not seem to be very stressed in R. According to this [1] by Ripley, 'Levenberg-Marquardt is hardly competitive these days' which could imply the low emphasize on LM in R.
The position of LM is, to
2008 Mar 26
1
GNUplot to R conversion?
Hi,
I have some scripts creating GNUplot graphs that I would like to
convert to R. It would be a great help if there would be a
reasonable converter that takes over plot commands and initial
settings and put these into R commands (I'm an R beginner and
thus this kind of Kickstart would be helpful).
Remark: Asking Google for "gnuplot to R conversion" or similar things
does not
2008 Oct 22
1
Inserting blank lines into a file
Hi,
Should be a quickie:
I want to make a datafile in R for plotting in gnuplot (which has
friendlier 3D plotting options, as far as I can tell). So, I want to
create a file with contents along the lines of
#File begins
0 0 10
0 13 10
0.2 2 10
1 0 10.12
1 1 5
1 2 10
2 0 10
2 1 1
2 2 10
It's probably fairly easy to write the space-separated numbers with
write.table, sink, or similar. But
2006 May 21
2
nls & fitting
Dear All,
I may look ridiculous, but I am puzzled at the behavior of the nls with
a fitting I am currently dealing with.
My data are:
x N
1 346.4102 145.428256
2 447.2136 169.530634
3 570.0877 144.081627
4 721.1103 106.363316
5 894.4272 130.390552
6 1264.9111 36.727069
7 1788.8544 52.848587
8 2449.4897 25.128742
9 3464.1016 7.531766
10 4472.1360 8.827367
11
2007 Mar 09
2
Deconvolution of a spectrum
Dear useRs,
I have a curve which is a mixture of Gaussian curves (for example UV
emission or absorption spectrum). Do you have any suggestions how to
implement searching for optimal set of Gaussian peaks to fit the curve?
I know that it is very complex problem, but maybe it is a possibility
to do it? First supposement is to use a nls() with very large functions,
and compare AIC value, but it is
2012 Jun 04
2
Non-linear curve fitting (nls): starting point and quality of fit
Hi all,
Like a lot of people I noticed that I get different results when I use nls
in R compared to the exponential fit in excel. A bit annoying because often
the R^2 is higher in excel but when I'm reading the different topics on this
forum I kind of understand that using R is better than excel?
(I don't really understand how the difference occurs, but I understand that
there is a
2006 Sep 28
1
Nonlinear fitting - reparametrization help
Hi,
I am trying to fit a function of the form:
y = A0 + A1 * exp( -0.5* ( (X - Mu1) / Sigma1 )^2 ) - A2 * exp ( -0.5*
( (X-Mu2)/Sigma2 )^2 )
i.e. a mean term (A0) + a difference between two gaussians.
The constraints are A1,A2 >0, Sigma1,Sigma2>0, and usually Sigma2>Sigma1.
The plot looks like a "Mexican Hat".
I had trouble (poor fits) fitting this function to toy data
2004 Jul 05
3
[LLVMdev] Propose change gnuplot options for small picture versions
In current state dates at small version of pictures generated by night
builder script is unreadable
( for example http://llvm.cs.uiuc.edu/testresults/X86/running_loc.png ).
I suggest rotate it to vertical position in small picture versions.
.png file created modified gnuplot script (for comparing) and patch
attached.
"set xlabel 0,-1 " added for solving xlabel and xtics text overlap
2010 Feb 09
4
Re-execute previous command
Hello All,
In bash, to re-execute a command, say, 'gnuplot plot.gnu', one can type
!gnu. Is there a similar feature in the R console? For example:
plot(g1$mean,g2$mean)
.
.
.
Lines, many lines of commands
->Here I want to repeat the previous plot command.
!plot and plot(+TAB) do not work.
This question was asked in this forum back in 2006 but the answer seems to
have been lost
2008 Nov 12
3
Fitting data to a sigmoidal curve
Hi-
I'm a biologist trying to figure out the growth rate of salamanders in
different ponds. I collected individuals from various populations at
different dates, and using the size and date collected, I want to figure out
the growth curve of each population. My question is: How do I fit my data to
a Gompertz function in R?
Thank you so much!
Sarah
--
View this message in context:
2003 May 29
4
Postscript query: plotting long vectors
Hi,
I have a query about the maximum length of vector that can be plotted
in one go in a postscript driver. Try the following code (in 1.7.0;
version details below):
t <- seq(from=0, to=4*pi, length=200000)
y <- sin(t)
postscript(file="o.ps")
plot(t, y, type="l")
dev.off()
If I view the postscript file o.ps in "gv", it takes many seconds
before eventually
2005 Jun 21
2
nls(): Levenberg-Marquardt, Gauss-Newton, plinear - PI curve fitting
Hello,
i have a problem with the function nls().
This are my data in "k":
V1 V2
[1,] 0 0.367
[2,] 85 0.296
[3,] 122 0.260
[4,] 192 0.244
[5,] 275 0.175
[6,] 421 0.140
[7,] 603 0.093
[8,] 831 0.068
[9,] 1140 0.043
With the nls()-function i want to fit following formula whereas a,b, and c
are variables: y~1/(a*x^2+b*x+c)
With the standardalgorithm
2000 May 09
0
[RHBA-2000:021-01] gnuplot
---------------------------------------------------------------------
Red Hat, Inc. Bug Fix Advisory
Synopsis: gnuplot
Advisory ID: RHBA-2000:021-01
Issue date: 2000-05-08
Updated on: 2000-05-08
Product: Red Hat Linux
Keywords: editing, completion, arrows, history, readline
Cross references: N/A
2017 Jun 29
0
package to fit mixtures of student-t distributions
Offlist, because this is (a) an opinion and (b) about statistics and
therefore offtopic.
I don't know whether any such package exists, but I would predict that
this is likely to be overdetermined (too many parameters) and
therefore unlikely to be a successful strategy. Fitting a mixture of
Gaussians is already difficult enough.
Feel free to ignore, of course, and no need to reply.
Cheers,
2006 Aug 25
4
fitting a gaussian to some x,y data
I apologize if this is redundant. I've been Googling, searching the
archive and reading the help all morning and I am not getting closer
to my goal.
I have a series of data( xi, yi). It is not evenly sampled and it is
messy (meaning that there is a lot of scatter in the data). I want to
fit a normal distribution (i.e. a gaussian) to the data in order to
find the center. (The data
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all:
I'm trying to fit the optimal Box-Cox
transformation related to nls (see the code
below) for the demand of money data in Green (3th
Edition) but in the last step R gives the next
error message.
Error en
`[.data.frame`(eval(object$data), ,
as.character(formula(object)[[2]])[2]) :
undefined columns selected.
?Any idea to solve the problem?
Thanks in advance,
2006 May 12
6
text plots?
Is there a way to do text plots in R?
I'd like to do some simple XY plots in R with the output in text
(ascii). For example, with gnuplot I can do the following:
echo 'set terminal dumb ; plot sin(x)' | gnuplot
To generate a simple sin wave. Since I connect to a remote Linux
machine using SSH, being able to generate a rough idea of what a plot
will look like in text would be