From e8e1423fd627c4b82e2b4dd646630fdc2e9a3383 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:41:50 +0000 Subject: [PATCH] Built site for CatastRoNav@0.1.0: 9e6fba3 --- articles/CatastRoNav.html | 25 +++++++++++++------------ articles/dataviz-1.png | Bin 0 -> 245951 bytes articles/minimal-1.png | Bin 0 -> 201629 bytes pkgdown.yml | 2 +- reference/catrnav_clear_cache.html | 2 +- reference/catrnav_set_cache_dir.html | 4 ++-- search.json | 2 +- 7 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 articles/dataviz-1.png create mode 100644 articles/minimal-1.png diff --git a/articles/CatastRoNav.html b/articles/CatastRoNav.html index a28d7c6..0b587a8 100644 --- a/articles/CatastRoNav.html +++ b/articles/CatastRoNav.html @@ -153,42 +153,39 @@
Let’s extract now the construction year, available in the column
beginning
:
# 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
visualization. We use here the function
ggplot2::cut_width()
to create different classes:
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) +
@@ -213,8 +210,12 @@ Thematic maps= margin(b = 20), hjust = .5
),
plot.margin = margin(r = 40, l = 40)
- )
-#> Error in eval(expr, envir, enclos): object 'dataviz' not found
-Fvlg3n%3o t+h4R)Mp-<#K`
zCG95S-CeejML(q>f7cCcie;N+(cBd2p2~5wZhCEh_S#n2%1rLtdxif2)=Hk?$2Ev8
z%yRe}k@La+*#p)c9+{z-9U?-ilqdmRC2ns>!%6N(w2Rl&9nhl>UfycSZ3Z)kUC%ka
zTOTv0Tdd;jJ81vad&a0-L7vzb8e5r-S53!`_`_hknP>W9wUsae3=<&px}N_B)E`rRvNKl;g5Riu
zg$a!S%y6;sYhsjsnao1J3WlQnk-O!wMpN!#B@M5re|G9!Q&-!M=qmo~7yfw;Ll&|>
zPR```qDWkz+gti`Ta}P2jf*@pJF?h9x}tWF8W^PhaHMZiw8eY2=|3hB8q0(7o6PsG
z$=I`uzaX~3(QeTr<@o0OT@{#^T5q^_hSnWD0BjRW$-}-@C_Y2h%it^gy?2~wxP+%~
zGn{spoA#7yQRZwt&_?AzffRZk3G