Closed dominicroye closed 1 year ago
I just downgraded metR to the commit "42c03f2cb3b8c688100e501ca79c62f53a3d24da" from 28 Nov, 2020 and it is working fine. See: https://xeo81.shinyapps.io/MeteoExtremosGalicia/
Thanks. That helps a lot.
Hi! Sorry it took me so long to look into this, especially because the end result might be anticlimactic. I think that the issue is that recent versions of metR don't add scale_mag() automatically with geom_arrow(). So you need to add it yourself.
Here's a minimal example using your data:
library(metR)
library(ggplot2)
url <- "https://www.dropbox.com/s/ovl51z8v6a3af0u/data_wind.RData?dl=1"
d <- `[`
file <- tempfile()
download.file(url, file)
load(file)
ggplot(df, aes(weekday,-as.numeric(week))) +
geom_arrow(aes(dx = u, dy = v, colour = VEL),
show.legend = FALSE,
arrow.ends = "last",
lineend = "round")
last_plot() + scale_mag()
Created on 2021-08-06 by the reprex package (v2.0.0)
Hi,
I have issues with geom_arrow() within geom_tile() and facet_grid() since my last update. I am using metR 0.9.1.9000 and tidyverse 1.3.0.
Data example here