search for: yvalues

Displaying 12 results from an estimated 12 matches for "yvalues".

Did you mean: values
2009 Aug 07
3
How do I plot a line followed by two forecast points?
...o 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 forecast dates that start from xValue's data point > fcastDates=seq.Date(from=as.Date(xValues[length(xValues)]),length=12,by="m...
2010 Mar 22
1
Accessing data in groups created with split() and other beginner questions
Hi, very new to R here... I have a data frame called 'set' with 100k+ rows in it that looks like this: subject timestamp yvalue traceabs subjtrace 1 1 1992-07-12 06:05:00 12 1 1-1 2 1 1992-07-12 06:10:00 15 1 1-1 3 1 1992-07-12 06:15:00 17 1 1-1 4 1 1992-07-12 06:20:00 20 1 1-1 5
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
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
2010 Nov 06
1
Prettier axis labels when using log scales in Lattice
Hello, I am trying to alter the way in which lattice functions (specifically xyplot) print the axis labels when one uses the 'scales' parameter. I can obtain the effect I want by using scales=list(y=list(log=10, labels=expression(yvalues))) where yvalues are the values that would have been printed as the y-axis labels if the "labels" argument had not been present. To help clarify what I am looking for, compare the first of the following plots with the second: data(iris) xyplot(Sepal.Length~Sepal.Width, iris, scales=list(...
2010 Nov 17
0
X11 module cannot be loaded
HI, Dear R community, I have used the following codes this morning, but this afternoon, I got the following errors: > x <- seq(0,10, by=1) > y <- c(0.952, 0.947, 0.943, 0.941, 0.933, 0.932, 0.939, 0.932, 0.924, 0.918, 0.920) # missense > z <- c(0.068, 0.082, 0.080, 0.099, 0.108, 0.107, 0.101, 0.105, 0.118, 0.130, 0.132) # missense False Negative > p <- c(0.035, 0.036,
2010 Oct 27
2
keep adding elements to the matrix
Hello everyone, I would like to create a "dynamic" array to keep storing number in it for (i in c(2:length(final))){ myarray <-final[i]-final[i-1] myarray2<-2*final[i] } At the end I would like to use myarray as the x values of an array and the myarray2 as the yvalues of the same array. I tried cbind but it didnot work. Could you please help me with that? Best Regards Alex [[alternative HTML version deleted]]
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?
...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 keep adding new c...
2006 Feb 01
2
How to save R-grafics in eps format
Hello! I used to save R-Grafics like this: postscript("file.ps"). Is there alsoa way to save them as eps? Thank you very much Claudia
2008 Jan 22
1
error bar position setting
Hi, I am using R on Windows XP. I am using 'arrows' funtion to plot the variance as error bar, BUT error bar goes only one side of the data point, I need to plot the error bar on both side of the data point (plot is attached), I am using following commands to plot, plot(file3$lat,file3$STotwoKm,pch=21,cex=2.5,ylim=c(-0.2,2.5),xlim=c(-50,50),xlab=NA,ylab=NA, col=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