Skip to content

Commit

Permalink
adapt vignette and examples to uses cartography 2.0.1, following cran…
Browse files Browse the repository at this point in the history
… note
  • Loading branch information
rcarto committed Sep 25, 2017
1 parent 6e92380 commit 701427a
Show file tree
Hide file tree
Showing 84 changed files with 788 additions and 39 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: MTA
Title: Multiscalar Territorial Analysis
Version: 0.1.0
Date: 2017-02-28
Version: 0.1.1
Date: 2017-09-25
Authors@R: c(person("Ronan", "Ysebaert",
email = "ronan.ysebaert@cnrs.fr", role = c("aut")),
person("Nicolas", "Lambert",
Expand Down
13 changes: 7 additions & 6 deletions R/gdev.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
#' breaks = bks, border = NA,
#' col = cols)
#' # add symbols proportional to the absolute general deviation
#' propSymbolsLayer(spdf = com.spdf, df = com, var = "gdevabs",
#' legend.pos = "left",legend.values.rnd = -2,
#' legend.title.txt = "Absolute Deviation",
#' col = "#ff000050",col2 = "#0000ff50",
#' legend.style = "e", inches = 0.2,
#' breakval = 0)
#' com$sign <- ifelse(test = com$gdevabs<0, yes = "negative", no = "positive")
#' propSymbolsTypoLayer(spdf = com.spdf, df = com, var = "gdevabs",var2 = "sign",
#' legend.var.pos = "left",legend.values.rnd = -2,
#' legend.var2.values.order = c("positive", "negative"),
#' legend.var.title.txt = "Absolute Deviation",
#' col = c("#ff000050","#0000ff50"),legend.var2.pos = "n",
#' legend.var.style = "e", inches = 0.2)
#' # add EPT boundaries
#' plot(ept.spdf, add=TRUE)
#' # add a layout
Expand Down
13 changes: 7 additions & 6 deletions R/sdev.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@
#' breaks = bks, border = NA,
#' col = cols)
#' # add symbols proportional to the absolute spatial deviation
#' propSymbolsLayer(spdf = com.spdf, df = com, var = "scardevabs",
#' legend.pos = "left",legend.values.rnd = -5,
#' legend.title.txt = "Absolute Deviation",
#' col = "#ff000050",col2 = "#0000ff50",
#' legend.style = "e", inches = 0.2,
#' breakval = 0)
#' com$sign <- ifelse(test = com$scardevabs<0, yes = "negative", no = "positive")
#' propSymbolsTypoLayer(spdf = com.spdf, df = com, var = "scardevabs",var2 = "sign",
#' legend.var.pos = "left",legend.values.rnd = -2,
#' legend.var2.values.order = c("positive", "negative"),
#' legend.var.title.txt = "Absolute Deviation",
#' col = c("#ff000050","#0000ff50"),legend.var2.pos = "n",
#' legend.var.style = "e", inches = 0.2)
#' # add a layout
#' layoutLayer(title = "Spatial Deviation (neighborhoud: 10 minutes by car)",
#' sources = "GEOFLA® 2015 v2.1, impots.gouv.fr", north = TRUE,
Expand Down
12 changes: 7 additions & 5 deletions R/tdev.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@
#' breaks = bks, border = NA,
#' col = cols)
#' # add symbols proportional to the absolute territorial deviation
#' propSymbolsLayer(spdf = com.spdf, df = com, var = "tdevabs",
#' legend.pos = "left",legend.values.rnd = -5,
#' col = "#ff000050",col2 = "#0000ff50",
#' legend.style = "c", inches = 0.2,
#' breakval = 0)
#' com$sign <- ifelse(test = com$tdevabs<0, yes = "negative", no = "positive")
#' propSymbolsTypoLayer(spdf = com.spdf, df = com, var = "tdevabs",var2 = "sign",
#' legend.var.pos = "left",legend.values.rnd = -2,
#' legend.var2.values.order = c("positive", "negative"),
#' legend.var.title.txt = "Absolute Deviation",
#' col = c("#ff000050","#0000ff50"),legend.var2.pos = "n",
#' legend.var.style = "e", inches = 0.2)
#' # add EPT boundaries
#' plot(ept.spdf, add=TRUE)
#' # add a layout
Expand Down
13 changes: 7 additions & 6 deletions man/gdev.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions man/sdev.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions man/tdev.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions vignettes/MTA.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## ----fig.width=7,echo=FALSE----------------------------------------------
library(png)
library(grid)
img <- readPNG("./img/figure_MTA1.png")
grid.raster(img)

## ----fig.width=7,echo=FALSE----------------------------------------------
img <- readPNG("./img/figure_MTA2.png")
grid.raster(img)

## ----fig.width=7,echo=FALSE----------------------------------------------
img <- readPNG("./img/figure_MTA3.png")
grid.raster(img)

Loading

0 comments on commit 701427a

Please sign in to comment.