Displaying 11 results from an estimated 11 matches similar to: "ggplot : scale_x_datetime issues"
2009 Oct 14
0
Problem with NLSstClosestX; and suggested fix
Problem is demonstrated with this code, intended to find the approximate 'x'
at which the 'y' is midway between the left and right asymptotes. This
particular data set returns NA, which is a bit silly!
--------------
sXY <- structure(list(x = c(0, 24, 27, 48, 51, 72, 75, 96, 99), y =
c(4.98227,
6.38021, 6.90309, 7.77815, 7.64345, 7.23045, 7.27875, 7.11394,
6.95424)), .Names =
2004 May 31
0
Doubts on anova and use of contrasts in multcomp package
Dear list,
I have been studying R and I would like the aid of more experienced to solve the problems of the analysis below:
r = gl(3, 8, label = c('r1', 'r2', 'r3'))
e = rep(gl(2, 4, label = c('e1', 'e2')), 3)
y = c(26.2, 26.0, 25.0, 25.4, 24.8, 24.6, 26.7, 25.2, 25.7, 26.3, 25.1, 26.4,
19.6, 21.1, 19.0, 18.6, 22.8, 19.4, 18.8, 19.2, 19.8, 21.4,
2011 Feb 10
1
Ggplot: free x-scales in a facet-grid
Hello,
I have a ggplot that has the looks of the plot that I want, but it doesn't
have the right layout.
The data is an ordered melted dataframe:
- ID
- type (to use for a faced grid)
- time - type
- time - value (POSIXct)
- pos (to use for a faced grid, this is an index to split the plot)
The goal of the plot is to create a time line for each ID (different points
of time). The ID's
2016 Sep 06
2
Ayuda con gráfico típico de histograma más linea
Hola,
Dell es los pocos que yo sepa que ofrecen equipos con Linux instalado como
SO de base:
http://www.dell.com/es/empresas/p/xps-13-9350-laptop-ubuntu/pd?oc=bnx9333
Saludos,
Carlos Ortega
www.qualityexcellence.es
El 6 de septiembre de 2016, 21:33, Ruben Tobalina Ramirez <
lagrimaescrita en gmail.com> escribió:
> Buenas,
>
> gracias a los que me ayudaron, he conseguido hacer
2010 Nov 19
0
Ggplot and irregular timeseries
Hello there,
Could anybody please help on how to correctly use ggplot when
printing irregural time series, by irregural here I mean for example
the absence of some dates in the whole timespan of a dataset. To be
more precise in the following example I generated some random data
which spans the whole November up to now and dropped weekend days but
for some reasons ggplot continues to plot the
2016 Sep 03
2
Ayuda con gráfico típico de histograma más linea
Sí, la primera reunión de la temporada será el 8 de este mes.
Un saludo,
Carlos J. Gil Bellosta
http://www.datanalytics.com
El 3 de septiembre de 2016, 23:52, Ruben Tobalina Ramirez <
lagrimaescrita en gmail.com> escribió:
> Muchas gracias a todos!
>
> Pues si, Eric, R a veces me vuelve loco, tiene una lógica muy particular.
> Miraré el libro, que lattice no lo he usado
2016 Sep 03
2
Ayuda con gráfico típico de histograma más linea
Prueba algo así:
library(ggplot2)
datos <- read.table("Downloads/pec.csv", header = T, sep = ";", dec = ",")
datos$Miles <- as.numeric(gsub("\\.", "", as.character(datos$Miles)))
datos$hora <- strptime(datos$hora, format = "%H:%M")
ggplot(datos, aes(x = hora, y = Miles)) + geom_line() +
scale_x_datetime(date_breaks =
2006 May 17
8
Why can''t I change value of the primary key?
One should be able to change the value of a primary key, right? But it''s
not working for me. If I do this:
@drug = Drug.find(tid1)
@drug.id = tid2
@drug.category = ''Test2''
if @drug.save
savedok = ''Saved successfully''
else
savedok = ''Not saved''
end
I get ''Saved successfully''
2007 Jan 08
1
finer control of scales in xyplot
When plotting over multiple pages in lattice, I'd like to be able to
have "same" scales within a page, but "free" scales between pages. In
other words, something like:
z<-data.frame(x=1:100,
y=runif(100),
d=rep(1:2,50),
p=rep(1:2,each=50))
plot<-xyplot(y~x|d*p,
data=z,
2006 Jul 28
3
R uses private function in libc (PR#9107)
Full_Name: Quanah Gibson-Mount
Version: 2.3.0, 2.3.1
OS: Linux
Submission from: (NULL) (171.66.155.86)
libc used to export the symbol:
__libc_stack_end;
however, newer versions of libc no longer export it. R has some serious
problems around this, because the code has:
# ifdef linux
extern void * __libc_stack_end;
# endif
and
#if defined(linux)
R_CStackStart = (uintptr_t)
2016 Sep 02
2
Ayuda con gráfico típico de histograma más linea
Y bueno, algo más bonito sí que queda con ggplot...
#---------------
datIn <- read.csv("pec.csv", header = TRUE, sep = ";", dec = ",")
library(ggplot2)
lab_x_idx <- c(1, round(nrow(datIn)/2, 0), nrow(datIn))
lab_x <- as.vector(datIn$hora[ lab_x_idx])
fre_gg <- ggplot( datIn, aes( x = 1:nrow(datIn), y = frec)) +
geom_bar(stat =