PlotEquiMap improvements
Here are a few things that can be improved in PlotEquiMap().
-
(1) Follow the development in !94 (merged), it's better to calculate params xlabels
andylabels
in the function (!94 (comment 170834)). Ifxlabels = NULL
, the labels can still be correct (see the right figure in !94 (comment 169024)). The parameters should still be open for customizing labels. -
(2) discrete color bar: If the color bar is for categorical data, the name of each category should be placed in the center of each color. (In new package) -
(3) Two dots or hatching: Allow dots
to be a list of arrays and plotted by different shapes. hatching function provided by Roberto (~/aho-testtest/s2dv/hatching.R
) -
(4) dots
dimensions are not checked and reordered asdata
. The longitude and latitude dimensions of the input should be flexible. -
(5) Add crop
argument to crop the desired region. So the inputdata
lat
andlon
don't need to be subset beforehand -
(6) first_lon: users can define the longitude border and the function adjusts the data accordingly. For example, the data is [0, 360] but first_lon = 330, then the function needs to rearrange the data to [330:360, 0:330] then do the plotting. -
(7) Deal with value Inf
:Inf
is not NA and it should belong to the triangle at the ends of color bar. We can sayInf <- max + 1
and-Inf <- min - 1
in the code. -
(8) Add param closedevice
like PloyLayout() has. -
(9) Fixed coordinate #43 -
(10) caption #98 -
(11) mask #98 -
(12) vertical colorbar