I have created a wind rose using the package 'openair', for water current and direction data. However, a default title is applied to the plot "Frequency of counts by wind direction (%)" which is not applicable to water current data. I cannot remove the title - can anyone help?
windRose(Wind, ws = "ws", wd = "wd", ws2 = NA, wd2 =NA,
ws.int = 20, angle = 10, type = "default", cols ="increment",
grid.line = NULL, width = 0.5, seg = NULL,
auto.text = TRUE, breaks = 5, offset = 10, paddle =FALSE,
key.header = "Current Speed", key.footer = "(cm/s)",
key.position = "right", key = TRUE, dig.lab = 3,
statistic = "prop.count", pollutant = NULL, annotate =
TRUE, border = NA, na.action=NULL)
Thanks!
The great thing about a lot of R functions is you can type their name to see the source, in many cases. So here you could type
windRose
, and edit the required label as below:Here I've copied the entire source, and made a new function,
windRose.2
with the only difference beingstat.lab <- "Frequency of counts by wind direction (%)"
is nowstat.lab <- ""
.