Displaying 20 results from an estimated 25 matches for "xvalues".
Did you mean:
values
2009 Aug 07
3
How do I plot a line followed by two forecast points?
...scaled
against a new axis scale, thus the two plots are not directly
comparable (I need the forecast points to be scaled according to the
existing y axis).
An example is pasted below. Any ideas on how to achieve this would be
much appreciated.
Thanking you in advance,
George.
# Sample dates
>xValues = seq.Date(as.Date("1990-01-31"),to=as.Date("1992-12-31"),by="month");
# Sample y value
> yValues<-NULL;
> yValues[1:length(xValues)]=seq(0.1,length=length(xValues))
# Plot the series as a line
> plot(xValues,yValues,type="l");
# Sample forecas...
2010 Apr 17
2
Question regarding R plot
Hi, I am new to R, and have a quick question regarding an R script
that I received from a kind colleague.
I am trying to determine the "peak" (maximum value) of the graph that
is plotted when executing the following. There is an input file called
"rates_values.txt" which begins as:
rateValue
0.375693
0
1.71274
0
0
1.02832
0
0.16343
1.02349
0
0
1.47258
0.703522
0.390541
2012 Oct 30
1
Is there an lm() equivalent of panel.lmline()?
panel.lmline returns intercept and slope of y ~ x subsetted to the
combination of conditioning factors given to xyplot in lattice.
for instance:
xyplot(Xvalues ~ log(Qvalues)|Tfac, data = df7, panel = panel.lmline)
I am looking to find the equivalent formulation for lm() proper. If I do
this:
lmcal <- lm(Xvalues ~ log(Qvalues):Tfac, data = df7)
Only one value of the intercept is returned. It appears as all the
'individual' intercepts are su...
2009 Jul 15
3
abline(v= x) in plot with time formated xaxis not working
Hi,
I try to create a vertical line in my plot, which has a xaxis comprising
time formated data.
This is what I tried:
----------------
y<-152833
x<-strptime(y, format="%H%M%S")
abline(v=x, col="red")
----------------
for some reason, it doesn't work and no error msg is displayed...
I hope someone can tell me what I do wrong, or maybe an alternative.
Thanks
2017 Jun 07
2
purrr::pmap does not work
Hi All,
I try to do a scatterplot for a bunch of variables. I plot a dependent
variable against a bunch of independent variables:
-- cut --
graphics::plot(
v01_r01 ~ v08_01_up11,
data = dataset,
xlab = "Dependent",
ylab = "Independent #1"
)
-- cut --
It is tedious to repeat the statement for all independent variables. Found
an alternative, i.e. :
-- cut --
mu
2007 Jul 25
3
Constructing bar charts with standard error bars
...s using barplot.
testdata <- scan(, list(group=0,xbar=0,se=0))
400 0.36038 0.02154
200 0.35927 0.02167
100 0.35925 0.02341
50 0.35712 0.01968
25 0.35396 0.01931
barplot(testdata$xbar, names.arg=as.character(testdata$group), main="a=4.0",
xlab="Group", ylab="xbar")
xvalues <- c(0.7, 1.9, 3.1, 4.3, 5.5)
arrows(xvalues, testdata$xbar, xvalues, testdata$xbar+testdata$se, length=
0.4, angle=90, code=3)
The best clue I have so far is Rtips #5.9:
http://pj.freefaculty.org/R/Rtips.html#5.9 which is what I based my present
solution off of.
However, I do not understand...
2009 Jun 27
1
Creating Excel-Charts via RDCOMClient
...uot;A1:D1")
r[["Value"]] <- c(1:4)
ch <- ex$Charts()
ch$Add()
ac <- ex$ActiveChart()
ac[["ChartType"]] <- xlXYScatterSmoothNoMarkers
ac$Location(Where=xlLocationAsObject, Name="Tabelle1")
ac$SeriesCollection()$NewSeries()
ac$SeriesCollection(1)[["XValues"]] <- r
ac$SeriesCollection(1)[["Values"]] <- r
#-------------------------------------------------------------------
But I don't perfer this way writing calculated values like "c(1:4)" to the
Excel Sheet and calling them via "SeriesCollection". I'm...
2006 Aug 10
0
Updating a database record using Javascript variables
I need to update a record in a table based on a event that occurs in the
View. I believe the update action should occur in the controller. I
think I need to call the controller action from the View and pass data
that is stored in a Javascript variables as a parameter, but I am not
sure how to do it. Can someone show me how I should be doing this?
Below is a simplified version of the code I
2009 Jul 11
2
maximum/minimum value of a function
Dear All,
Does anyone know how to get the maximum/minimum value of a function using R,
I think there should be an instruction, but i can not find it in help files
Thank you in advance for your help :)
[[alternative HTML version deleted]]
2004 Nov 26
0
(no subject)
...half of it.
If you reverse this process you get back to the "x-value", which is what
the quantile function is doing.
qnorm(0.5)
Does this help for the last question?
Code for superimposing the data:
deg.of.free <- 4
hist(rt(n=500, df=deg.of.free), freq=FALSE, breaks=75, xlim=c(-5,5))
xvalues <- seq(from=-5, to=5, length=200)
lines(x=xvalues, y=dt(xvalues, df=deg.of.free), col="blue", lwd=3)
Finally, just two remarks:
1) Please use a sensible subject line in your message.
2) Is this some kind of homework assignment? (looks like a typical one)
Ciao,
Roland
+++++
This m...
2011 Aug 16
2
postscript( does not save the plot
Dear all,
I am using the following code to write the plot to an eps format
postscript(file="test.eps",horizontal=FALSE)
2012 Jun 10
3
Data.frames can not hold objects...What can be done in the following scenario?
...ements of type double, string
etc but NOT objects (such as a matrix etc). This is not convenient for
me in the following situation. I have a function that takes 2 inputs
and returns a vector:
testfun <- function (x,y) seq(x,y,1)
I have a data.frame defined as follows:
testframe<-data.frame(xvalues=c(2,3),yvalues=c(4,5))
I would like to apply testfun to every row of testframe and then
create a new column in the data.frame which holds the returned vectors
as objects. Why do I want this? Because the returned vectors are an
intermediate step towards further calculations. It would be great to
ke...
2011 Mar 19
1
GAMLSS Question
...orresponding
the fitted model's sigma mu nu by agebins.
Q:
How do it generate these parameters as in L M S per Cole and Green 1992?
Here are my working codes.
Name of fitted model is gamlssfit
> Agebin<-seq(6,36,6)
>centmatx
<-centiles.pred(gamlssfit,xname="agemos",xvalues=Agebin,cent=c(10,25,50,75,90))
Although I got matrix of the percentiles by agebins, I want to obtain the L
M S/sigma mu nu corresponding to the same agebins.
Any help here will be appreciated.
Thanks,
Y Addo
--
View this message in context: http://r.789695.n4.nabble.com/GAMLSS-Question-tp3...
2012 Dec 14
1
Plotting from a matrix, where column 1 is your x value
Hello,
I'm very new to R, and have managed to plot xy graphs, but can't seem to
plot a matrix properly.
The first column is my time points, and the following columns 2-4 are the
replicates of my experiment.
I've tried using row.names=1 to make the first column the value for that row
(whereas before I had 1-31 sequence) and then my 1st column) but I can't
work out how to tell it
2016 Jul 09
2
Red Neuronal complicada categorías
...) - 1)
x_new <- cbind(V1Binario,V2Binario)
x_new <- cbind(x_new,V3Binario)
x_new <- cbind(x_new,V4Binario)
x_new <- cbind(x_new,V5Binario)
nam_ori <- colnames(x_new)
col_nam <- paste("V", 1:ncol(x_new), sep = "")
colnames(x_new) <- col_nam
library(RSNNS)
xValues <- x_new
xTargets <- x[, 6]
xTargetsDecoded <- decodeClassLabels(xTargets)
x_nn <- splitForTrainingAndTest(xValues, xTargetsDecoded, ratio=0.15)
set.seed(432)
model <- mlp(x_nn$inputsTrain, x_nn$targetsTrain,
size=3, learnFuncParams=c(0.1), maxit=10,
inputs...
2012 Feb 07
6
Setting up infile for R CMD BATCH
Suppose I create an R program called myTest.R with only one line like
the following:
type <- as.integer(readline("input type (1: type1; 2: type2)? "))
Then I'd like to run myTest.R in batch mode by constructing an input
file called answers.R with the following:
source("myTest.R")
1
When I ran the following at the terminal:
R CMD BATCH answer.R output.Rout
it failed
2016 Jul 07
2
Red Neuronal complicada categorías
Estimados
Les consulto por redes neuronales, hay diversos artículos como los siguientes (el último tienen un error actualmente). Pero mi pregunta va un poco por otro lado.
http://www.r-bloggers.com/build-your-own-neural-network-classifier-in-r/
http://www.r-bloggers.com/classification-using-neural-net-in-r/
Básicamente se puede calcular un valor, por ejemplo doblar 2,4 grados a la derecha, luego 1
2005 Aug 18
8
Extending a js class
It''s been a few days since I posted my last two emails (of which, no one
replied to) so I''ve gone ahead and coded a working slider class as well
as a ''resizeable'' class that allows a user to drag and resize the
element. I also linked these two together as I want to have slider
behavior that can resize the resizeable element. The end result is both
the
2004 May 31
2
[OT] "plot y against x"
...ical analysis with R" (so maybe
I'm not so off-topic after all), also unequivocal, e.g.:
http://www.nbn.ac.za/Education/11-stats-2004/R1.8/r_workshop.pdf
Example: Plotting functions
Assume that you were to plot a function by hand. One possibility
of doing it is to
1. Select some xvalues from the range to be plotted
2. Compute the corresponding y = f(x) values
3. Plot x against y
4. Add a (more or less) smooth line connecting the (x; y)points
...
plot(x, y) # plots x against y
(However, in R itself, "?plot" is discretely silent about what is
"a...
2014 Jul 17
3
[LLVMdev] Use of Smart Pointers in LLVM Projects
On Thu, Jul 17, 2014 at 4:45 PM, Alp Toker <alp at nuanti.com> wrote:
>
> On 18/07/2014 02:21, David Blaikie wrote:
>>
>> Are people OK with/prefer the use of owning smart pointers in APIs?
>
>
> I think smart pointers are great to use for storage, or as struct members
> where there's actually a clear need for ownership. Just by virtue of getting
> rid of