[R] facet_wrap(nrow) ignored

2020-09-09 Thread Ivan Calandra
Dear useRs, I have an issue with the argument nrow of ggplot2::facet_wrap(). Let's consider some sample data: mydf <- data.frame(grp = rep(letters[1:6], each = 15), cat = rep(1:3, 30), var = rnorm(90)) And let's try to plot with 5 rows: library(ggplot2) ggplot(data = mydf, aes(x = cat, y = var))

[R] calculating a linear regression for each grid cell. firstly

2020-09-09 Thread ahmet varlı
Hi all, for example, � have 4 raster data and � try to convert these rasters to 1 array and calculate a linear regression for each grid cell how can � do this? max_consecutive_days_1<- raster(ncol=94, nrow=192, xmn=-180, xmx=180, ymn=-90, ymx=90)