search for: xintercept

Displaying 18 results from an estimated 18 matches for "xintercept".

Did you mean: intercept
2005 Aug 03
1
passing variable to formula environment
...me(age = c(1.92, 3, 5.83, 3.17, 15.5, 1.17, 5.58, 13.33, 14.29, 5.83, 13.79, 6.33, 13.75, 16.83, 13, 11.67, 0.25, 1.73, 9.46, 5.67), length = c(157, 165, 179, 171, 195, 135, 179, 193, 194, 186, 196, 186, 210, 200, 189, 194, 106, 161, 188, 159)) # return gompertz fit Gompertz <- function(data,Xintercept,Lzero,start) { gomp <- formula(length ~ Lzero * exp(k * (1 - exp(-g * (age - Xintercept))))) nls(formula=gomp,data=data,start=start) } When I run the function, I get the following error: > Gompertz(growth,0,87,list(k=0.5,g=0.5)) Error in eval(expr, envir, enclos) : Object "Lzero&...
2013 May 14
1
Tamaño plots y calidad en grafico ggplot
...(Jurisdiction), y=Mean, ymin=245, ymax=305)) h + scale_fill_manual(values = c("#A0551E", "#FA964B","#E1EBFF", "#B4CDFF", "#055014","#A0551E"))+ geom_hline(yintercept = seq(245, 305, 10), linetype=2, colour="#E1EBFF")+ geom_vline(xintercept = seq(1, 33, 2.5), linetype=1, colour="#E1EBFF")+ geom_vline(xintercept = -2, linetype=1, colour="white")+ geom_vline(xintercept = k, colour="#0000FF20", lwd=5)+ geom_rect(xmin=-2,xmax=-1, mapping=aes(NULL, NULL, ymin=inicio[3:4],ymax=fin[3:4], fill=Niveles[3:4]), alp...
2009 Aug 10
2
ggplot: colours to geom_segments
...uot;, "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
2010 Nov 09
1
ggplot2: facet_grid with different vertical lines on each facet
...ing facet_grid in ggplot2. However, I want to then add a vertical line to each histogram, or facet, each of which vertical lines are at different x-values. The following example adds all vertical lines to each facet: ggplot(data,aes(values)) + geom_histogram() + facet_grid(.~variable) + geom_vline(xintercept=c(5,10,15)) How can I add a vertical line at different x positions on each facet? Thanks very much, Scott Chamberlain [[alternative HTML version deleted]]
2011 Jun 11
0
problems with geom_vline, histograms, scale=free and facets in ggplot
...cet mean.data=tapply(mtcars$wt,INDEX=list(mtcars$vs,mtcars$am),mean) mean.data=melt(mean.data) colnames(mean.data)=c("vs","am","wt.mean") # Now do the plot p <- qplot(wt, data=mtcars) p <- p + facet_grid(vs ~ am,scale="free") p <- p + geom_vline(aes(xintercept = wt.mean), mean.data,col="red") p ########################################################### ########################################################### # This one does not work # Create a test data set set.seed(100) my.data=data.frame(code1=rep(c("A","B","C&qu...
2013 May 13
0
Tamaño plots y retoques de ticks en grafico ggplot
...=factor(Orden), y=Mean, ymin=245, ymax=305)) h + scale_fill_manual(values = c("#A0551E", "#FA964B","#E1EBFF", "#B4CDFF", "#055014","#A0551E"))+ geom_hline(yintercept = seq(245, 305, 10), linetype=2, colour="#E1EBFF")+ geom_vline(xintercept = seq(1, 26, 2.5), linetype=1, colour="#E1EBFF")+ geom_vline(xintercept = -2, linetype=1, colour="white")+ geom_vline(xintercept = k, colour="#0000FF20", lwd=5)+ geom_rect(xmin=-2,xmax=-1, mapping=aes(NULL, NULL, ymin=inicio[3:4],ymax=fin[3:4], fill=Niveles[3:4]), al...
2020 Apr 01
2
añadir líneas verticales con ggplot
Buenos días, hago un mapa con ggplot: world<-map_data('world') windows();ggplot(legend=FALSE) + ... geom_point(data=Data,aes(x=lon,y=lat,color=Clst),size=1.25) + scale_color_manual(values=c("grey45","navy","skyblue","gold","green3","darkgreen")) + geom_path( data=world, aes(x=long, y=lat,group=group)) + labs(title =
2020 Jun 05
3
líneas sobre un mapa
...d<-prd Preds<-rbind(Preds,testdata) } El vie., 5 jun. 2020 a las 16:18, Emilio L. Cano (<emilopezcano en gmail.com>) escribió: > Hola Manuel, > Al ser ggplot supongo que será como en cualquier gráfico en ejes > coordenados, añade una capa: > > ggplot(?..) + geom_vline(xintercept = vector_de_valores_x) > > Un saludo, > > Emilio L. Cano > http://emilio.lcano.com > > > > > El 5 jun 2020, a las 13:48, Manuel Mendoza <mmendoza en fulbrightmail.org> > escribió: > > > > Buenos días ¿sabéis si hay alguna forma de añadir una recta...
2012 Mar 05
2
ggplot2
...h ggplot2 0.9 and am finding bugs. > ggplot2 "GPL-2" "2.14.0" This example is taken from pg 101 in the ggplot book. > plot <- qplot(date, psavert, data = economics, geom = "line") + > ylab("Personal savings rate") + geom_hline(xintercept = 0, colour = > "grey50")' > plot + scale_x_date(major = "10 years") Error in continuous_scale(aesthetics, "date", identity, breaks = breaks, : unused argument(s) (major = "10 years")> plot + scale_x_date(limits = as.Date(c("2004-01-01&qu...
2020 Jun 05
2
líneas sobre un mapa
Buenos días ¿sabéis si hay alguna forma de añadir una recta vertical sobre un mapa hecho previamente con ggplot? Lo que hago ahora es cargar nuevamente el mapa con la línea añadida (una serie de líneas añadidas secuencialmente en un loop) pero me gustaría que añadiese las líneas sin cargar nuevamente el mapa. Gracias, Manuel [[alternative HTML version deleted]]
2013 Oct 11
1
behaviour of read.xls (gdata package) when worksheet usesuser-defined cells formats
(I'm afraid this post didn't reach the list on last Wednesday, here it is again ) hi R-list, And sorry for my frenglish ! I am running R < Good Sport > release ( i386-w64-mingw32/i386 (32-bit) ) ) under Windows 7 Professional, Service Pack 1. My perl executable is ActivePerl build 817 [257965] (i.e. version 5.8.8.817). Usually it is working fine. Using the gdata ::read.xls
2009 Oct 09
1
Placing text in a ggplot
...duration, temps, colour=month)) + geom_line() + ylab("Temperature (C)") + xlab("Mean Daily Temperatures") + opts(legend.position = "none", title="Ottawa, 2008", axis.text.x = theme_blank(), axis.ticks = theme_blank()) + geom_vline(xintercept= line.count) [[elided Yahoo spam]] p + geom_text(aes(x = namposts, y = temprange[2], label = mlabs), data = year, size = 2.5, colour='black', hjust = 0, vjust = 0) ====================================================================== year <- structure(list(monthnum =...
2009 May 27
1
ggplot2 adding vertical line at a certain date
library(ggplot2) melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057, 13149, 11808, 11869, 11961, 11992, 12084, 12173, 12265, 12418, 12600, 12631, 12753, 12996, 13057, 13149), class = "Date"), variable = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2008 Dec 14
0
New version of ggplot2, 0.8.1
...ould now work in a wider variety of situations * geom_smooth now gives correct asymmetric standard errors with generalised linear models (thanks to Thierry Onkelinx) * geom_vline and geom_hline now correctly transform their intercepts if the scale is transformed * geom_vline and geom_hline: now use xintercept and yintercept instead of intercept * legend.position and legend.justification work again * position_dodge now works for any number of elements with smaller widths, not just 2! * scale_discrete_position: does a better job of calculating axis limits when plotting a mixture of continuous and discrete...
2008 Dec 14
0
New version of ggplot2, 0.8.1
...ould now work in a wider variety of situations * geom_smooth now gives correct asymmetric standard errors with generalised linear models (thanks to Thierry Onkelinx) * geom_vline and geom_hline now correctly transform their intercepts if the scale is transformed * geom_vline and geom_hline: now use xintercept and yintercept instead of intercept * legend.position and legend.justification work again * position_dodge now works for any number of elements with smaller widths, not just 2! * scale_discrete_position: does a better job of calculating axis limits when plotting a mixture of continuous and discrete...
2010 Feb 28
1
ggplot 'annotate problem' again.
...temprange <- range(year$temps, na.rm=TRUE) p <- ggplot(year, aes(duration, temps, colour=months)) + geom_line() + opts(legend.position = "none", title="Yearly temperatures", axis.text.x = theme_blank(), axis.ticks = theme_blank()) p p <- p + geom_vline(xintercept=month.counts) + ylab("Temperature (C)") + xlab("Daily Temperatures") p p + annotate("text", x=namposts+2.5, y = temprange[2], label= mlabs, size=2.5, colour='black', hjust = 0, vjust = 0) Data #=====================================================...
2009 Oct 17
2
Putting names on a ggplot
...emprange <- range(year$temps, na.rm=TRUE) p <- ggplot(year, aes(duration, temps, colour=months)) + geom_line() + opts(legend.position = "none", title="Yearly temperatures", axis.text.x = theme_blank(), axis.ticks = theme_blank()) p p <- p + geom_vline(xintercept=month.counts) + ylab("Temperature (C)") + xlab("Daily Temperatures") p # this is where I see the problem. p <- p + geom_text(aes(x = namposts + 2.5, y = temprange[2], label = mlabs), data = year, size = 2.5, colour='black', hjust = 0, vjust = 0) p =====...
2009 Jun 01
1
installing sn package
...at a certain date To: stephen sefick <ssefick@gmail.com> Cc: "r-help@r-project.org" <r-help@r-project.org> Message-ID: <80F5C2A2-1A14-4997-8B02-0BA84B157927@me.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes check out geom_vline   + geom_vline(xintercept=as.numeric(as.Date("2002-11-01"))) [you may not need to convert the date to numeric in the most recent  ggplot2 version] On 27 May 2009, at 20:31, stephen sefick wrote: > library(ggplot2) > > melt.updn <- (structure(list(date = structure(c(11808, 11869, 11961,  > 11992,...