search for: yvalue

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

Did you mean: value
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="...
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 1 1992-07-12 06:25:00 24 1...
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
...ames(dataset) <- c("v01_r01", var_battery$v08) independent <- as.list(dataset$v01_r01) dependent <- as.list(dataset[var_battery$v08]) fargs <- list( x = independent, y = dependent, ylab = v08_var_labs) fargs %>% purrr::pmap( function(d = dataset, xvalue = x, yvalue = y, xlab = "Label for x variable", ylab = ylab) { graphics::plot( xvalue ~ yvalue, data = d, xlab = xlab, ylab = ylab) } ) -- cut -- The last statement comes back with Error: Element 2 has length 8, not 1 or 10. Ho...
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
...pch=21, col="red", yaxt="n", lty=1, xlab="", ylab="", ylim=c(0.91, 0.955)) #yaxt=n suppress the y axis. Error in function (display = "", width, height, pointsize, gamma, bg, : X11 module cannot be loaded > > # draw an axis on the left > yvalue<-c(0.92, 0.93, 0.94, 0.95) > axis(2, at=yvalue, labels=yvalue, col.axis="red", las=2) Error in function (display = "", width, height, pointsize, gamma, bg, : X11 module cannot be loaded I googled the X11 module, still not understand, can anyone help me with this? Tha...
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
...30,1:500],test[90,1:500],test[150,1:500],test[210,1:500],test[270,1:500],test[330,1:500],test[390,1:500],names=c("1","3","5","8","10","13","1"),outline=FALSE,ylim=c(0.01,50),log="y", xlab = "xvalue",ylab="yvalue",boxwex=0.5, pars =list(whisklwd=0,staplelwd=0)) dev.off() This creates a 6kb eps file, that can not be opened by any program. I tired with photoshop gimp, acrobat reader. This is the normal process I follow to save my plots. dev.off always returns 1. and the boxplot function succesfullu...
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...
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