I am using opeair polarplot function to generate a plot like this.
However, I am unable to customize plot appearenace.
- I want to change the radius of innner circles representing winds and want to put them at 3,6,9,12,18 m/s.
- I do not want frame cropping outermost circle full as shown here. I want full circle.
- I want change orientation of key.header (which is the colorbar label)
I have tried syntax applied to ggplot2 but it doesn't work with this function. I would be grateful for any lead on this.
my code:
polarPlot(data, pollutant="pol",
x="Wind_spd_m_s",
wd="Wind_Direction",
col="turbo",
limits =c(40,400),
key.position="right",
key.header = "pol conc",
key.footer="",
units = "ms-1",
breaks = seq(0, 18, by = 3))
As well as drawing the polar plot, the
polarPlot
function invisibly returns an object which contains a data frame of x, y, z values that allows you to draw the plot in whatever format you like.I find ggplot the easiest system to use to customize plots, so you can replicate the graphical output of
polarPlot
with custom breaks and a rotated legend header as follows: