Displaying 14 results from an estimated 14 matches for "graphdata".
2010 Nov 04
1
Best Fit line trouble with rsruby
...te a graph and best fit line for
a set of data points, regarding data collected in a Chemistry class. The
problem is that although the graph functions perfectly properly, the best
fit line will not work.
I initially used code I pretty much copied from a website with a tutorial on
this, which was:
graphData.png("/code/Beer's-Law Graph.png")
concentration = p1Conc
absorbance = p1AbsorbanceArray
graphData.assign('x', p1Conc)
graphData.assign('y', p1AbsorbanceArray)
fit = graphData.lm('x ~ y')
graphData.plot(concentration, absorbance)
graphData.abline(fit["coeff...
2018 Apr 05
2
Obtain gradient at multiple values for exponetial decay model
Readers,
Data set:
t,c
0,100
40,78
80,59
120,38
160,25
200,21
240,16
280,12
320,10
360,9
400,7
graphdata<-read.csv('~/tmp/data.csv')
graphmodeld<-lm(log(graphdata[,2])~graphdata[,1])
graphmodelp<-exp(predict(graphmodeld))
plot(graphdata[,2]~graphdata[,1])
lines(graphdata[,1],graphmodelp)
Please what is the function and syntax to obtain gradient values for the model curve at various r...
2007 Jul 10
6
Having trouble using data returned by Ajax.request
...;: [[0,0.0865334429075127], [1,0.0828179861705063],
[2,0.0828173042602942], [3,0.0841707718624196]]}
But I keep getting an error: "item.pluck is not a function" on line
857 of plotr_uncompressed.js
Here is the code I''m using to grab the data into a javascript
variable:
var graphData = "";
var url = "foobar.php";
function generateGraphData(dataRange,dataUrl) {
new Ajax.Request(url, {
method: ''get'',
parameters: {dR:dataRange,dU:dataUrl},
onLoading: function() {
// change this to a loading imag...
2008 Aug 14
1
Graphing: plot 3rd variable based on color gradient
...rementally
based on the size of the z value, similar to the colramp parameter in
geneplotter. This would be analagous to symbols(), except changing the
selection from the color gradient rather than the size of the plotted
shape. The closest I have come so far is the levelplot() function, as
below:
graphdata <- alldata[,c("x","y", "size")]
levelplot(size ~ x * y, data=graphdata)
However, since I only have 147 total observations, the graph produced
by levelplot() is mostly white space. Is there either a function that
would produce this in a more visually digestible form...
2018 Apr 05
0
Obtain gradient at multiple values for exponetial decay model
...ction.
--
Sent from my phone. Please excuse my brevity.
On April 5, 2018 3:44:03 AM PDT, g l <gnulinux at gmx.com> wrote:
>Readers,
>
>Data set:
>
>t,c
>0,100
>40,78
>80,59
>120,38
>160,25
>200,21
>240,16
>280,12
>320,10
>360,9
>400,7
>
>graphdata<-read.csv('~/tmp/data.csv')
>graphmodeld<-lm(log(graphdata[,2])~graphdata[,1])
>graphmodelp<-exp(predict(graphmodeld))
>plot(graphdata[,2]~graphdata[,1])
>lines(graphdata[,1],graphmodelp)
>
>Please what is the function and syntax to obtain gradient values for
>...
2018 Apr 06
3
Obtain gradient at multiple values for exponential decay model
...exp( predict (graphmodeld, newdata=data.frame(t=x) )))/
> .0001 }
> myNumDeriv(c(100, 250, 350))
I realized that this would not work in the context of your construction. I had earlier made a more symbolic version using R formulae:
graphdata<-read.csv(text='t,c
0,100
40,78
80,59
120,38
160,25
200,21
240,16
280,12
320,10
360,9
400,7')
graphmodeld<-lm(log(c)~t, graphdata)
graphmodelp<-exp(predict(graphmodeld))
plot(c~t, graphdata)
lines(graphdata[,1],graphmodelp)
myNumDeriv(c(100, 250, 350), graphmodeld )...
2012 Feb 17
1
basic help: graph multivariate analysis.
Hey guys, I'd really appreciate any help.
I have a multivariate analysis done, the output of which is:
> GraphData <-read.table("eigen.coa")
> GraphData
V1 V2 V3 V4
1 1 0.371970 0.8552 0.8552
2 2 0.061785 0.1420 0.9972
3 3 0.001211 0.0028 1.0000
4 4 0.000000 0.0000 1.0000
> summary(GraphData)
V1 V2 V3 V4
Min. :1....
2018 Apr 07
0
Obtain gradient at multiple values for exponential decay model
...redict (graphmodeld, newdata=data.frame(t=x) )))/
>> .0001 }
>> myNumDeriv(c(100, 250, 350))
>
> I realized that this would not work in the context of your construction. I had earlier made a more symbolic version using R formulae:
>
> graphdata<-read.csv(text='t,c
> 0,100
> 40,78
> 80,59
> 120,38
> 160,25
> 200,21
> 240,16
> 280,12
> 320,10
> 360,9
> 400,7')
> graphmodeld<-lm(log(c)~t, graphdata)
> graphmodelp<-exp(predict(graphmodeld))
> plot(c~t, graphdata)
> lines(graphdata[...
2010 Apr 24
1
help please: predict error code
Hello,
I am trying to calculate predicted values derived from one dataset into a hypothetical dataset. I tried this line of code:
graphdata$fmgpredvalues <- predict(Acs250.3.4, graphdata)
and received the following error message:
ERROR: ZXend[1], drop = FALSE] %*%lmeFit$beta
I have made sure all variable names are the same between the two datasets and all factors are appropriately labeled.
I appreciate any insight.
Thanks,...
2018 Apr 06
0
Obtain gradient at multiple values for exponential decay model
> On Apr 6, 2018, at 3:43 AM, g l <gnulinux at gmx.com> wrote:
>
>> Sent: Friday, April 06, 2018 at 5:55 AM
>> From: "David Winsemius" <dwinsemius at comcast.net>
>>
>>
>> Not correct. You already have `predict`. It is capale of using the `newdata` values to do interpolation with the values of the coefficients in the model. See:
2018 Apr 06
2
Obtain gradient at multiple values for exponential decay model
> Sent: Friday, April 06, 2018 at 5:55 AM
> From: "David Winsemius" <dwinsemius at comcast.net>
>
>
> Not correct. You already have `predict`. It is capale of using the `newdata` values to do interpolation with the values of the coefficients in the model. See:
>
> ?predict
>
The ? details did not mention interpolation explicity; thanks.
> The
2018 Apr 06
1
Obtain gradient at multiple values for exponential decay model
...1:44 PM
> From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us>
>
> You did not try my suggestion. You tried David's, which has a leftover mistake from your guesses about what the argument to coef should be.
Yes, sorry for the mistake.
coef(graphmodeld)
(Intercept) graphdata[, 1]
4.513544204 -0.006820623
This corresponds to the linear model but it is still not understood how this helps to determine gradients at specific points for the exponential model.
2018 Apr 06
2
Obtain gradient at multiple values for exponential decay model
> Sent: Friday, April 06, 2018 at 4:53 AM
> From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us>
> To: "g l" <gnulinux at gmx.com>
> coef( graphmodeld )
>
coef(graphmodelp)
Error: $ operator is invalid for atomic vectors
A quick search engine query revealed primarily references to the dollar sign ($) operator which does not seem relevant to this
2018 Apr 06
0
Obtain gradient at multiple values for exponential decay model
You did not try my suggestion. You tried David's, which has a leftover mistake from your guesses about what the argument to coef should be.
--
Sent from my phone. Please excuse my brevity.
On April 6, 2018 3:30:10 AM PDT, g l <gnulinux at gmx.com> wrote:
>> Sent: Friday, April 06, 2018 at 4:53 AM
>> From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us>