search for: g_rang

Displaying 6 results from an estimated 6 matches for "g_rang".

Did you mean: grang
2011 Jun 07
2
Line Graphs
...ng the mean of the variables at each level. SO for 0.1 on the xaxis, we should expect 6 values for y. This is what I have so far. The plot omits 1.0 and the abline function does not make the line y = x on the plot This is what I have so far: # Calculate range from 0 to max value of cars and trucks g_range <- range(0, 1) # Graph autos using y axis that ranges from 0 to max # value in cars or trucks vector. Turn off axes and # annotations (axis labels) so we can specify them ourself plot(B, type="o", pch = 0, lty=1,col="blue", ylim=g_range, axes=FALSE, ann=FALSE) # Make x axi...
2011 May 03
3
Axis trouble
...s(vecAVG)<-c("brain","heart","kidney","lung","blood") par(mar=c(12,4.1,4.1, 2.1)) plot(sort(vecAVG,decreasing=TRUE),type="p",pch=19,col="darkslateblue",axes=FALSE,ann=FALSE) g_range<-range(vecAVG) axis(1,at=0:length(vecAVG),lab=names(vecAVG),las=2) axis(2, las=1, at=0:g_range[2]) After these commands I am getting the graph but it does not have any Y axis. I know I am making a silly mistake somewhere. Can someone please guid...
2011 Mar 18
1
Help with setting the y-axis in a plot.
Hi all. I'm working on an assignment for a psychology class and I am not sure how to adjust the y-axis so it displays the range: 0, 5, 10, 15 The code below is almost ideal: lsd = c(3, 5, 13) mar = c(1, 2, 3) g_range <- range(0, lsd, mar) plot(lsd, type="o", col="blue", ylim=g_range, axes=FALSE, ann=FALSE) axis(1, at=1:3, lab=c("Low","Med","High")) axis(2, las=1, at=5*0:max(mar)) box() lines(mar, type="o", pch=22, lty=2, col="red") title(...
2010 May 17
0
Re : append new line in existing graph
...ve --args ".$Domain.",".$Gender." < /var/www/html/trends/newTrend.R"); In newTrend.R, I am plotting graph and save in pdf file using the below code. It will create a pdf file with two line. pdf(file="/var/www/html/trends/bmtrend.pdf", height=7.5, width=10.5) g_range <- range(0,index , ReqDataindex) plot(index, type="o", col="blue", ylim=g_range,axes=FALSE, ann=FALSE) axis(1, at=1:7, lab=c(1:daycount)) axis(2, las=1, at=25*0:g_range[2]) box() lines(ReqDataindex, type="o", pch=22, lty=2, col="red") Now what I wan...
2012 Jul 19
1
Change log(J) to log(J+1) to stop log(0) from occurring in harModel
...uot;), label.pos = c(4, 2), cex.caption = 1){ observed = x$model$y; fitted = x$fitted.values; dates = x$dates; dates = as.POSIXct(dates); observed = xts(observed, order.by=dates); fitted = xts(fitted, order.by=dates); type = x$type; g_range = range(fitted,observed) g_range[1] = 0.95*g_range[1]; g_range[2]= 1.05 * g_range[2]; #ind = seq(1,length(fitted),length.out=5); title = paste("Observed and forecasted RV based on HAR Model:",type); plot.zoo(observed,col="red",lwd=2,main=title, ylim=g_range,xlab=&qu...
2012 Jul 19
1
Switching log(J) to log(J+1) to avoid log(0) in HAR-RVJ model
...mooth"), label.pos = c(4, 2), cex.caption = 1){ observed = x$model$y; fitted = x$fitted.values; dates = x$dates; dates = as.POSIXct(dates); observed = xts(observed, order.by=dates); fitted = xts(fitted, order.by=dates); type = x$type; g_range = range(fitted,observed) g_range[1] = 0.95*g_range[1]; g_range[2]= 1.05 * g_range[2]; #ind = seq(1,length(fitted),length.out=5); title = paste("Observed and forecasted RV based on HAR Model:",type); plot.zoo(observed,col="red",lwd=2,main=title, ylim=g_range,xlab="...