Re: [R-es] Cambiar formato fecha

2018-09-28 Thread Javier Marcuzzi
Estimada Miriam Le respondo corto, estoy en el celular, escriba str(los datos), su fecha puede ser en realidad texto. Hay varias formas, lubridate, pero yo aprendí striptime y me siento cómodo con este comando. Javier Marcuzzi El vie., 28 de sep. de 2018 1:20 PM, escribió: > Buenas tardes, >

Re: [R] Boxplot with linear (not categorical) x-axis

2018-09-28 Thread William Dunlap via R-help
Use the 'at' argument to boxplot. E.g., > x <- rep(c(2,4,8,16), c(5,10,20,30)) > y <- seq_along(x) > par(mfrow=c(2,1)) > boxplot(y~x, at=unique(x)) > boxplot(y~x) Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Sep 28, 2018 at 3:05 AM, Luigi Marongiu wrote: > Dear all, > I am using

Re: [R] subset only if f.e a column is successive for more than 3 values

2018-09-28 Thread William Dunlap via R-help
Do you also want lines 38 and 39 (in addition to 40:44), or do I misunderstand your problem? When you deal with runs of data, think of the rle (run-length encoding) function. E.g. here is a barely tested function to find runs of a given minimum length and a given difference between successive

Re: [R] subset only if f.e a column is successive for more than 3 values

2018-09-28 Thread Knut Krueger
Hi Jim, thank's it is working with the given example, but whats the difference when using testdata=data.frame(TIME=c("17:11:20", "17:11:21", "17:11:22", "17:11:23", "17:11:24", "17:11:25", "17:11:26", "17:11:27", "17:11:28", "17:21:43", "17:22:16", "17:22:19",

[R-es] Problema utilizando la función dist2isobath (marmap package) con un sistema de coordenadas proyectadas

2018-09-28 Thread Isa García Barón
Tengo un grid creado en un sistema de coordenadas proyectado (WGS84 zona 30N) y estoy intentando extraer la distancia más cercana a la costa desde de todas las celdas del grid, asi como a otras isóbatas utilizando la función "dist2isobath" del paquete marmap. Para ello reproyecté los datos del

Re: [R] Boxplot with linear (not categorical) x-axis

2018-09-28 Thread Richard M. Heiberger
install.packages("HH") library(HH) system.file("demo/bwplot.examples.r", package="HH") demo("bwplot.examples", package="HH", ask=FALSE) ## your example dfA <- data.frame(X, Y=c(A, B, C)) dfA$X.factor <- factor(dfA$X) position(dfA$X.factor) <- c(1,3,5) bwplot(Y ~ X.factor,

Re: [R] Boxplot: draw outliers in colours

2018-09-28 Thread Jim Lemon
Hi Luigi, An easy way is to use "points" to overplot the outliers: grbxp<-boxplot(dfA$Y ~ dfA$X, ylim=c(0, 200), col="green", ylab="Y-values", xlab="X-values" ) points(grbxp$group,grbxp$out,col="green") On Fri, Sep 28, 2018 at 7:51 PM Luigi Marongiu wrote:

[R] Boxplot with linear (not categorical) x-axis

2018-09-28 Thread Luigi Marongiu
Dear all, I am using boxplot to draw some data. Would be possible to have the X-axis linear (as in a scatter plot) instead of the standard categorical axis? The data I have is subdivided into three groups at the numerical values 1, 3, 5; boxplot treats these as categorical values; in fact, I can

[R] Boxplot: draw outliers in colours

2018-09-28 Thread Luigi Marongiu
Dear all, I am trying to overlap two series of boxplots on the same graph. In order to distinguish the outliers from one series to the other, would be possible to colour the outliers?: instead of the standard black, is it possible to give a chosen colour? Thank you >>> This is the example. I

Re: [R] Access function as text from package by name

2018-09-28 Thread Deepayan Sarkar
On Fri, Sep 28, 2018 at 2:16 PM Bert Gunter wrote: > > Do you mean: > ?get Doesn't work with :: etc: > get("graphics::box") Error in get("graphics::box") : object 'graphics::box' not found I think parse()+eval() is pretty much unavoidable. After that, it's a choice between deparse() and

Re: [R] Access function as text from package by name

2018-09-28 Thread Bert Gunter
Do you mean: ?get On Thu, Sep 27, 2018, 11:44 PM Sigbert Klinke wrote: > Hi, > > I guess I was not clear enough: the name of the function is stored as > string. Solutions which use the object directly do not help unfortunately. > > Thanks Sigbert > > Am 27.09.2018 um 12:30 schrieb Sigbert

Re: [R] Access function as text from package by name

2018-09-28 Thread Sigbert Klinke
Hi, I guess I was not clear enough: the name of the function is stored as string. Solutions which use the object directly do not help unfortunately. Thanks Sigbert Am 27.09.2018 um 12:30 schrieb Sigbert Klinke: Hi, I want to have a function, e.g. graphics::box, as text. Currently I'am