mapproj
package (see #15).AddNorthArrow()
to plot on base maps an arrow pointing towards
north together with a label.Legend()
which is a custom version of graphics::legend()
introducing the option to have point symbols at both ends of legend lines.MinorTick()
to add minor tick marks to an existing base plot.tidyr::gather
with tidyr::pivot_longer
ggpolar()
it is now possible to control the line widths of the land and
continental outlines and of the latitude and longitude axes via the function
parameters size
and size.axes
, respectively.Update to ggpolar()
:
rnaturalearth
,
replacing the maptools
map, which enables to toggle the plotting of political
(country) borders via the new function parameter plot.political.boundaries
and no longer requires the rgeos
hack;country.outline.colour
is renamed to
land.outline.colour
, since it generally addresses both the colour of the
land surface outlines and the potentially plotted political boundaries;Minor update for LabelAxis()
:
Default font now is always 1 (plain) instead of the current setting of par
to
avoid the opening of a new empty graphics device when no active devce is present
(#10).
Update of ColorPal()
function:
The function parameter options now clearly distinguish between setting the number of input colours for the palette and setting the number of (interpolated) return colours.
Several new functions added:
Quartz()
[for Mac OS users only]: wrapper for the quartz()
device using
per default a 4:3 aspect ratio for on-screen plotting or saving to a file and
including the setting of default graphical parameters which are deliberately
different from base R's settings to produce visually more appealing plots.Par()
: function to set graphical parameters specified as its arguments via
passing them on to a call to par()
. The function's default settings are set
to produce visually more appealing plots compared to base R's default
settings.ErrorBars()
: function to add error bars to an existing point plot.PlotStamp()
: function to add session information to an existing base plot:
script name, date of plot creation, etc., placed in the upper right corner of
the plot, so that for later reference you know when and how you created the
plot.LabelAxis()
: function to format nice axis labels involving common math
expressions for label and units.ColorPal()
: wrapper function to quickly obtain a colour palette from the
ColorBrewer 2.0 collection for use in standard plots, image plots, or filled
contour plots.Changes for a proper and more self-contained package:
::
syntax to call functions from base and other packages
to remove unnecessary function or package imports into the NAMESPACE.rgeos
is now only a suggested package to avoid problems with external
libraries needed on Linux systems.wrld_simpl
dataset is now an internal dataset in the package to render
unnecessary the full import of the maptools
package into the grxftools
NAMESPACE.rlang
.data
pronoun to avoid R CMD check notes.ggpolar()
to avoid R CMD check warning.main
branch as of 2020-11-20).Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.