Skip to content

Releases: riatelab/mapsf

mapsf_0.10.1

06 May 09:53
b05f7e8
Compare
Choose a tag to compare

Fix

  • revert previous remove "export" and "theme" args from mf_export() to accommodate dependencies
  • revert previous remove "theme" from mf_init() to accommodate dependencies

mapsf_0.10.0

26 Apr 09:55
17a3057
Compare
Choose a tag to compare

Fix

  • allow to plot non overlapping labels from a layer made of strictly overlapping features with mf_label() (#65)
  • fully display mf_raster() legends after a terra::plot() call (#67)
  • remove "export" and "theme" args from mf_export()
  • remove "theme" from mf_init()

Feat

  • improved and cleaner documentation for mf_map() (#62)

Full Changelog: 0.9.0...0.10.0

mapsf_0.9.0

26 Jan 16:05
69d76e3
Compare
Choose a tag to compare

Fix

  • add the possibility to use a scale bar in (US) maps using feet based CRS (#59)
  • deprecate unit argument in mf_scale()
  • remove wrong ellipsis propagation in mf_label()
  • better environment management in mf_legend() to allow usage inside a
    function (#58)
  • fix raster legends (using type arg, see feat.) (#60)

Feat

  • add "interval", "continuous" and "classes" types with matching legends in
    mf_raster() (#60)
  • mf_raster() invisibly returns the initial raster

mapsf_0.8.0

21 Nov 13:14
a5377c1
Compare
Choose a tag to compare

Fix

  • raise an error and display an informative message if no points are plotted
    when type = "prop*"

Feat

  • add mf_distr(), a function to display a statistical distribution with
    histogram, boxplot, stripchart and density curve
  • add a lot of legend related args (leg_frame_border, leg_horiz, leg_adj,
    leg_bg, leg_fg, leg_size, leg_border, leg_box_border, leg_box_cex)
  • double legends (prop_choro, prop_typo, etc.) are stacked by default
  • add legends for raster
  • deprecate all mf_legend_*() functions
  • add rev arg for function using pal to reverse named palettes
  • add a q arg in mf_label() to select the quality of the non overlapping
    placement

Refactor

  • use the maplegend pkg for legends (this change may introduce minor breaking
    changes)
  • use s2 instead of overcomplicated sf code for othographic proj in
    mf_worldmap()
  • use R base instead of C++ in mf_label() non overalapping placement

mapsf_0.7.1

27 Jul 13:18
7ec386d
Compare
Choose a tag to compare

Fix

  • fix bug in color assignment in 'choro', 'prop_choro' and 'symb_choro' maps
    when supplying "incomplete" breaks (#56)

mapsf_0.7.0

07 Jul 12:16
459cbe0
Compare
Choose a tag to compare

Fix

  • use a vector of colors for lines if necessary in mf_label() (#50)
  • enable pipe without side effects (no extra plot)
  • use a default transparent background for insets
  • deprecate "theme" arg in relevant function, adapt docs and vignettes, use
    options() for themes instead of global variable & mimic the behaviour of
    basetheme package
  • force the use of cairo device, if available, in mf_export() for png
  • fix wrong class allocation when using breaks = "jenks" (#53)
  • exports using unprojected objects do not produce figures with inaccurate
    height/width ratio anymore.

Feat

  • add expandBB arg in mf_map()
  • add expandBB arg in mf_raster()
  • add arg checking depending on type in mf_map()
  • add an error message for functions that need a pre-existing plot
  • add mf_graticule() to add graticule lines and labels
  • set internally the 'add' arg for each map types in mf_map()

mapsf_0.6.1

23 Jan 14:04
3109f15
Compare
Choose a tag to compare

Fix

  • add explicit support for sfg objects in mf_base(), mf_map(..., type = "base")

mapsf 0.6.0

Fix

  • use val_max in mf_prop() for LINES
  • add message when mf_export() is based on longlat obj
  • add a test for "x" class in mf_map()
  • enable proportional symbol plots for single points when using "prop", "prop_typo" & "prop_choro" maps; see #45
  • fix a bug in color assignment when there is a mismatch between the number of classes and the size of the color palette
  • add an error for method "geom" in mf_get_breaks() when min(x) <= 0
  • remove Inf values from x when using mf_get_breaks()
  • remove Inf values from x when using "prop", "prop_typo" & "prop_choro" maps
  • add informative message when NA, 0 & Inf values are removed when using "prop", "prop_typo" & "prop_choro" maps
  • add informative message when negative values are transformed to positive values when using "prop", "prop_typo" & "prop_choro" maps

Feat

  • add "prop_typo"" maps for LINES objects
  • add mf_get_ratio() to get appropriate values for map width & height

mapsf_0.5.0

03 Jun 09:07
Compare
Choose a tag to compare

Fix

  • remove "export" arg for exports based on terra rasters
  • remove "bg"" arg in mf_map()
  • add "pch = 20" default to plot points with mf_base()
  • get sf back from Depends to Imports
  • remove s2 related message for recent version of sf in mf_worldmap()

Feat

  • add "interactive" position for legends, north arrow, scale bar, annotation
  • add self-adjusted rounded values for proportional circles legends

mapsf_0.4.0

12 Jan 12:23
Compare
Choose a tag to compare

Fix

  • allow the display of raster with >=2 bands (not only exactly 3)
  • avoid mf_map(..., type="symb") failing when there is only one modality
  • make mf_export() aware of the export format with the filename extension only (+ deprecate "export"" arg)
  • add a default maximum to maxcell arg for raster display in mf_raster()
  • change smooth defaults in mf_raster(), TRUE if nlyr>=2, FALSE otherwise

Feat

  • add a web only vignette on faceted maps
  • add a web only vignette on custom fonts
  • add a cheat sheet
  • add parameters to customize worldmaps (land and ocean colors and borders)
  • add informatives messages concerning mf_map() input (checking type and variable names)

mapsf_0.3.0

08 Oct 12:27
Compare
Choose a tag to compare

Fix

  • add support for native pipe
  • suppress messages that appear when s2 use is switched with mf_worldmap()
  • replace raster by terra in all things raster

Feat

  • add a web only vignette on insets
  • add a web only vignette on themes
  • add mf_background(), a function to plot a background image for map
  • add support for raster in mf_export() and mf_init()