-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved datasets, added examples tm_facets
- Loading branch information
Showing
16 changed files
with
179 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#' @export | ||
tmapGetShapeMeta1.default = function(shp, o) { | ||
stop("Specified shp argument of tm_shape is a ", class(shp)[1], ", which is a recognized/supported spatial data class.", call. = FALSE) | ||
} | ||
|
||
#' @export | ||
tmapGetShapeMeta2.default = function(shp, smeta, o) { | ||
stop("Specified shp argument of tm_shape is a ", class(shp)[1], ", which is a recognized/supported spatial data class.", call. = FALSE) | ||
} | ||
|
||
#' @export | ||
tmapSubsetShp.default = function(shp, vars) { | ||
stop("Specified shp argument of tm_shape is a ", class(shp)[1], ", which is a recognized/supported spatial data class.", call. = FALSE) | ||
} | ||
|
||
#' @export | ||
tmapShape.default = function(shp, is.main, crs, bbox, unit, filter, shp_name, smeta, o, tmf) { | ||
stop("Specified shp argument of tm_shape is a ", class(shp)[1], ", which is a recognized/supported spatial data class.", call. = FALSE) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tm_shape(NLD_dist) + | ||
tm_polygons("edu_appl_sci", | ||
fill.scale = tm_scale_intervals(values = "pu_gn", style = "kmeans", n = 7)) + | ||
tm_facets(by = "province") + | ||
tm_shape(NLD_muni) + | ||
tm_borders(lwd = 3) + | ||
tm_facets(by = "province") + | ||
tm_title("Population with a univeristy degree (incl appl. sciences), percentages") | ||
|
||
tm_shape(World) + | ||
tm_polygons(c("gender", "press"), | ||
fill.scale = list(tm_scale_intervals(values = "bu_br_div", midpoint = 0.5), | ||
tm_scale_intervals(values = "pu_gn_div", midpoint = 50)), | ||
fill.legend = tm_legend("")) + | ||
tm_layout(panel.labels = c("Gender Inequality Index (GII)", "World Press Freedom Index")) |
Oops, something went wrong.