diff --git a/codemeta.json b/codemeta.json
index e61596d..f286f82 100644
--- a/codemeta.json
+++ b/codemeta.json
@@ -190,7 +190,7 @@
},
"SystemRequirements": null
},
- "fileSize": "964.93KB",
+ "fileSize": "965.815KB",
"citation": [
{
"@type": "SoftwareSourceCode",
diff --git a/vignettes/CatastRoNav.Rmd b/vignettes/CatastRoNav.Rmd
index a6d692c..c340c3f 100644
--- a/vignettes/CatastRoNav.Rmd
+++ b/vignettes/CatastRoNav.Rmd
@@ -106,33 +106,32 @@ we created before:
# Cut buildings
dataviz <- st_intersection(pamp_bu, pamp_buff)
-#> Error in UseMethod("st_intersection"): no applicable method for 'st_intersection' applied to an object of class "NULL"
ggplot(dataviz) +
geom_sf()
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
```
+
+
Let's extract now the construction year, available in the column `beginning`:
``` r
# Extract 4 initial positions
year <- substr(dataviz$beginning, 1, 4)
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
# Replace all that doesn't look as a number with 0000
year[!(year %in% 0:2500)] <- "0000"
-#> Error: object 'year' not found
# To numeric
year <- as.integer(year)
-#> Error in eval(expr, envir, enclos): object 'year' not found
# New column
dataviz <- dataviz %>%
mutate(year = year)
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
```
Last step is to create groups based on the year and create the data
@@ -143,12 +142,10 @@ different classes:
``` r
dataviz <- dataviz %>%
mutate(year_cat = ggplot2::cut_width(year, width = 10, dig.lab = 12))
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
# Adjust the color palette
dataviz_pal <- hcl.colors(length(levels(dataviz$year_cat)), "Spectral")
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
ggplot(dataviz) +
geom_sf(aes(fill = year_cat), color = NA) +
@@ -174,9 +171,13 @@ ggplot(dataviz) +
),
plot.margin = margin(r = 40, l = 40)
)
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
```
+
+
## References
- Royé D (2019). "Visualize urban growth."
diff --git a/vignettes/dataviz-1.png b/vignettes/dataviz-1.png
index cb1efd3..c5890f2 100644
Binary files a/vignettes/dataviz-1.png and b/vignettes/dataviz-1.png differ
diff --git a/vignettes/minimal-1.png b/vignettes/minimal-1.png
index 9a59d42..cf05128 100644
Binary files a/vignettes/minimal-1.png and b/vignettes/minimal-1.png differ