search for: yend

Displaying 20 results from an estimated 51 matches for "yend".

Did you mean: end
2019 Sep 16
2
Maybe bug? Using non-integer frequencies in stats::ts
...nd = 106.5, frequency = 0.2) bar = ts(x, start = 2.5, end = 107.5, frequency = 0.2) window(foo, start = 20, end = 30, extend=TRUE) # Time Series:# Start = 20 # End = 25 # Frequency = 0.2 # [1] 5 6 window(bar, start = 20, end = 30, extend=TRUE) # Error in attr(y, "tsp") <- c(ystart, yend, xfreq) : # invalid time series parameters specified The reason is in the rounding procedures for ystart and yend at the end of the stats::window function. For the 'foo' series the ystart and yend values are calculated as: c(20, 25), whereas for the 'bar' series, they become c(20...
2011 Jan 20
1
Generating time progressing line for Google Earth
...- GenerateLineSegments(startLong, startLat, endLong, endLat, numberOfIntervals) coords <- as.data.frame(coords) names(coords) <- c("Long", "Lat") seg <- data.frame(matrix(NA, nrow(coords) - 1, 5)) names(seg) <- c("x", "y", "xend", "yend", "segment") for (i in 1 : (nrow(coords) - 1 ) ) { seg[i, ]$x = coords[i, ]$Long seg[i, ]$y = coords[i, ]$Lat seg[i, ]$xend = coords[i + 1, ]$Long seg[i, ]$yend = coords[i + 1, ]$Lat seg[i, ]$segment = paste(i) } #seg brew(file = "LinesTemplate.xml", output = "RKM...
2006 Mar 26
2
Problem with names() in a plot after ordering a data.frame. Syntax or stupidity?
...v(Pcode) Lines <- 1:numberProvs plot(sort(Area), Lines, pch=20, col="red", xlab = " Area", ylab= "Province or Territory", axes=F) axis( 2, at=Lines, labels=names(Area), las=1) axis (1, labels= T) xstart <- 0 xend <- Area ystart <- rev(Lines) yend <- rev(Lines) arrows(xstart, ystart, xend, yend, col="red", length = 0) # --------------End of Crude working program----------------------------- # --------------Revised program using order on the data.frame------------- provs <- data.frame(Name, Pcode, Area) attach(provs) numbe...
2013 Jan 24
1
Insert segment only on particular facets in ggplot
..."300","350","34","84","134","184")) p1 ### This is how it should look like (though shows annotations for all the plots) p + annotate("text",x=340,y=3,label="2008",size=3)+annotate("segment",x=366,xend=366,y=0,yend=2,size=0.5)+annotate("text",x=390,y=3,label="2009",size=3)+annotate("segment",x=366,xend=310,y=1,yend=1,size=0.5,arrow=arrow(length=unit(0.2,"cm")))+annotate("segment",x=366,xend=420,y=1,yend=1,size=0.5,arrow=arrow(length=unit(0.2,"cm")))...
2004 Sep 15
2
efficient submatrix extraction
...efficient way to do it: m <- matrix(runif(1024*1024), nrow=1024) boxsize <- 2^(1:8) for (b in boxsize) { bcount <- 0 bstart <- seq(1,1024, by=b) for (x in bstart) { for (y in bstart) { xend <- x + b - 1 yend <- y + b - 1 if (length(which( m[ x:xend, y:yend ] > 0.7)) > 0) { bcount <- bcount + 1 } } } } Is there any way to vectorize the two inner loops? Thanks, ------------------------------------------------------...
2019 Dec 05
2
Maybe bug? Using non-integer frequencies in stats::ts
...dow(foo, start = 20, end = 30, extend=TRUE) >> >> # Time Series: >> # Start = 20 >> # End = 25 >> # Frequency = 0.2 >> # [1] 5 6 >> >> window(bar, start = 20, end = 30, extend=TRUE) >> >> # Error in attr(y, "tsp") <- c(ystart, yend, xfreq) : >> # invalid time series parameters specified >> >> The reason is in the rounding procedures for ystart and yend at the end > of the stats::window function. For the 'foo' series the ystart and yend > values are calculated as: c(20, 25), whereas for the ...
2013 Apr 23
1
One more question please...
...essfully: library("ndvits", lib.loc="/home/vahe/R/i686-pc-linux-gnu-library/2.15") ndvidirectory=paste(system.file("extdata/VITO_Mzimba", package="ndvits"), "/", sep="") region="Mzimba" Ystart=2004 Yend=2006 shape="SLP_Mzimba" shapedir=paste(system.file("extdata/shape", package="ndvits"), "/", sep="") outfile = "mzimbaTS2.txt" outfile2 = "MzimbaTS2.pdf" outfiel3 = "my.pdf" signal = TimeSeriesAnalysis(sha...
2013 Apr 24
1
R Interactive Mode
...". library("ndvits", lib.loc="/home/vahe/R/i686-pc-linux-gnu-library/2.15") ndvidirectory=paste(system.file("extdata/VITO_Mzimba", package="ndvits"), "/", sep="") region="Mzimba" Ystart=2004 Yend=2006 shape="SLP_Mzimba" shapedir=paste(system.file("extdata/shape", package="ndvits"), "/", sep="") outfile = "mzimbaTS2.txt" outfile2 = "MzimbaTS2.pdf" outfiel3 = "my.pdf" signal = TimeSeriesAnalysis(sh...
2013 Jan 16
1
How to plot this simple step function?
Hi everyone, I am trying to graph a step function in R Studio. I just learned about R today and decided to try it! The following is what I want it to look like. I graphed it using x <- 0:5 y <- c(0, .2, .3, .6, .9, 1.0) plot(x, y, type = "s") And used Microsoft Paint to get it to how I wanted it to look, but I want to do it in R Studio completely.
2009 Nov 17
2
Lattice plot
...he data x2: > x2 chr start1 end1 meth positive 1 1 10 20 1.5 y 4 1 35 70 3.0 y 5 1 120 140 -1.3 n 6 1 180 190 0.2 y ## Code courtesy of BAPTISTE AUGUIE library(ggplot2) ggplot(data=x2) + geom_segment(aes(x=start1, xend=end1, y=meth, yend=meth)) - Can I get lattice to do a similar graph for the panels? thanks! [[alternative HTML version deleted]]
2009 Aug 10
2
ggplot: colours to geom_segments
...;Bread", "Milk", "Potatoes", "Rice"), class = "factor"), Expense = c(25, 49, 34, 15)), .Names = c("Food", "Expense"), row.names = c(NA, -4L), class = "data.frame") p <- ggplot(xx, aes(x = 0, xend = Expense, y = Food, yend = Food)) pa <- p + geom_point(aes(Expense, Food)) + geom_segment(colour="darkgreen") + xlab("Food") + geom_vline(xintercept=40, colour='red') pa
2017 Dec 04
1
ggtern and bquote...
...tion at the time... -pd > On 4 Dec 2017, at 15:48 , Eik Vettorazzi <E.Vettorazzi at uke.de> wrote: > > reading ?plotmath you might notice that "_" isn't the propper syntax for > subscripts. This will work: > > ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend = > c(.30,.50,.0),zend =c(.0,.50,0.3)))+ > geom_point()+ > theme_showarrows()+geom_segment(size=.5)+ > geom_text_viewport(x=c(.45,.27,.37),y=c(.32,.29,.22),label=c("P[a]","P[b]","P[c]"), > parse=TRUE) > > cheers. > > Am 04.12.2017 um 15:3...
2019 Dec 05
0
Maybe bug? Using non-integer frequencies in stats::ts
...= 107.5, frequency = 0.2) > > window(foo, start = 20, end = 30, extend=TRUE) > > # Time Series: > # Start = 20 > # End = 25 > # Frequency = 0.2 > # [1] 5 6 > > window(bar, start = 20, end = 30, extend=TRUE) > > # Error in attr(y, "tsp") <- c(ystart, yend, xfreq) : > # invalid time series parameters specified > > The reason is in the rounding procedures for ystart and yend at the end of the stats::window function. For the 'foo' series the ystart and yend values are calculated as: c(20, 25), whereas for the 'bar' series, th...
2009 Feb 03
1
Time series plots with ggplot
Hi, I am newbie user of ggplot and would like some assistance in implementing time series plots. I'd like to know how the tsdiag plot can be made in ggplot? Thanks Harsh Singhal Decisions Systems, Mu Sigma Inc.
2011 Feb 23
1
ggplot2 directional line type?
I'm doing a path plot with ggplot2, the result is looking very nice, but I want to give some indication of which direction the lines are going. I thought of using colour gradients, but it doesn't look right. What would be ideal is a line type that indicated direction, something like ">>>>>>>". Is there any way to achieve this? Or can anyone suggest another
2017 Dec 04
1
YNT: ggtern and bquote...
Hi, My example code is this; x11<-data.frame(A=c(.6,.6,.6),B=c(.20,.20,.20),C=c(0.20,.20,.20)) ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend = c(.30,.50,.0),zend =c(.0,.50,0.3)))+ geom_point()+ theme_showarrows()+geom_segment(size=.5)+ geom_text_viewport(x=c(.45,.27,.37),y=c(.32,.29,.22),label=as.expression("P_a","P_b","P_c")) ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend = c(.30,.50,.0)...
2019 Dec 06
1
Maybe bug? Using non-integer frequencies in stats::ts
...Time Series: >>>> # Start = 20 >>>> # End = 25 >>>> # Frequency = 0.2 >>>> # [1] 5 6 >>>> >>>> window(bar, start = 20, end = 30, extend=TRUE) >>>> >>>> # Error in attr(y, "tsp") <- c(ystart, yend, xfreq) : >>>> # invalid time series parameters specified >>>> >>>> The reason is in the rounding procedures for ystart and yend at the end >>> of the stats::window function. For the 'foo' series the ystart and yend >>> values are calc...
2017 Dec 04
0
YNT: ggtern and bquote...
reading ?plotmath you might notice that "_" isn't the propper syntax for subscripts. This will work: ggtern(data=x11,aes(A,B,C,xend = c(0.7,.00,0.7),yend = c(.30,.50,.0),zend =c(.0,.50,0.3)))+ geom_point()+ theme_showarrows()+geom_segment(size=.5)+ geom_text_viewport(x=c(.45,.27,.37),y=c(.32,.29,.22),label=c("P[a]","P[b]","P[c]"), parse=TRUE) cheers. Am 04.12.2017 um 15:37 schrieb Levent TERLEMEZ via R-help: >...
2010 Nov 26
1
Generating kml lines output
...2, -16.2027, -16.57534, -16.57534, -16.57534, -15.5982), y = c(13.4526, 5.336318, 5.336318, 5.555, 5.555, 5.555, 11.86398, 11.9277, 13.4526, 13.4526, 13.4526, 11.86398 ), xend = c(-16.2027, -0.1963, -1.5352, 7.489, -1.5352, -16.2027, -16.2027, -17.3333, -4.027751, -0.1963, -17.3333, -16.2027 ), yend = c(11.9277, 5.555, 12.357, 9.058, 12.357, 11.9277, 11.9277, 14.75, 5.336318, 5.555, 14.75, 11.9277)), .Names = c("I", "BF", "from", "to", "x", "y", "xend", "yend"), row.names = c(NA, -12L), class = "data.frame&quo...
2019 Dec 06
0
Maybe bug? Using non-integer frequencies in stats::ts
...gt;> > >> # Time Series: > >> # Start = 20 > >> # End = 25 > >> # Frequency = 0.2 > >> # [1] 5 6 > >> > >> window(bar, start = 20, end = 30, extend=TRUE) > >> > >> # Error in attr(y, "tsp") <- c(ystart, yend, xfreq) : > >> # invalid time series parameters specified > >> > >> The reason is in the rounding procedures for ystart and yend at the end > > of the stats::window function. For the 'foo' series the ystart and yend > > values are calculated as: c(20...