Displaying 7 results from an estimated 7 matches for "verticales".
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 =
2011 May 18
3
leyenda cortada en el eje Y
...=T,xlab="Distance between nodes (in
meters)",ylab="Number of queries
injected",legend.text=c("Per-Hop","Global","Sink"),col=c("black","grey","white"))
axis(1,at=c(2.5,6.5,10.5),data$Xstep, tick=F)
dev.off()
Las barras verticales llegan hasta un valor aproximado de 400.000, sin
embargo, la leyenda en el eje Y sólo llega hasta 350.000. He probado a
poner con ylim(0,400000) y con esto, consigo lo que quiero pero el
gráfico me corta la leyenda, es decir, en vez de aparecer 4e+05, sale
4e+
Alguna sugerencia?? muchas gracias....
2006 Jan 04
1
Difficulty with 'merge'
Dear R-helpers,
Happy New Year to all the helpful members of the list.
Here is the behavior I'm looking for:
> v1 <- c("a","b","c")
> n1 <- c(0, 1, 2)
> v2 <- c("c", "a", "b")
> n2 <- c(0, 1 , 2)
> (f1 <- data.frame(v1, n1))
v1 n1
1 a 0
2 b 1
3 c 2
> (f2 <- data.frame(v2, n2))
2009 Jul 30
5
Grid lines
Hi everyone. I am new to R.
It will be greatly appreciated if someone can help me with the following
questions.
Here's the graph I have just produced.
http://www.nabble.com/file/p24732839/calibration.jpeg
(1) How can I put the legend on top of the grid lines?
(2) How can I match the grid lines with the x-axis ticks?
(3) How can I change the x-axis format from e.g. Mar, Apr...etc to
2010 Jul 05
3
Problemas para graficar barras de error y fechas en el eje-x (SOLUCIONADO)
...tro de datos, usando como referencia
# los valores Julian
*datos$tipo_num <- as.numeric(datos$tipo)
n_tipo <- max(datos$tipo_num)*
*for (i in 1:n_tipo) {
tipo <- subset(datos, tipo_num==i)
points(tipo$julian, tipo$ch, col=1, bg=8, pch=tipo$dibujo[1], cex=1.4)*
# dibujo las líneas verticales de las barras de error
*segments(tipo$julian, tipo$ch, tipo$julian, tipo$ch-tipo$desv_std, col=
''black'')
segments(tipo$julian, tipo$ch, tipo$julian, tipo$ch+tipo$desv_std, col=
''black''*)
#para que quede prolijo, también las lineas horizantales en cada...
2012 Jan 18
5
graficos con fechas
Buenas tardes:
A la hora de hacer unos graficos en el eje de las X tengo fechas en formato ad.Date (''aaa-mm-dd'', por ejemplo 2011-25-07) y el problema es que no me las considera como tales, sino como factores, y no tiene en cuenta la diferencia entre fechas a la hora de separar las barras entre si (por ejemplo, la distancia entre el 6 de julio y el 8 de julio es la misma que la
2003 Jan 22
2
small bug in binom.test?
Hi all,
I am wondering whether there is a small bug in the binom.test function of
the ctest library (I'm using R 1.6.0 on windows 2000, but Splus 2000 seems
to have the same behaviour). Or perhaps I've misunderstood something.
the command binom.test(11,100,p=0.1) and binom.test(9,100,p=0.1) give
different p-values (see below). As 9 and 11 are equidistant from 10, the
mean of the