forked from orbisgis/lczexplore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
summarisedRSUS modified for summed areas, concatenate functions modif…
…ied for "Unclassified" RSUs TO DO : finish matConfPlot to include the margins and inject it in compareLCZ (and compareMultiple ?)
- Loading branch information
Showing
20 changed files
with
367 additions
and
290 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#' Simply adds a slash at then end of a directory path if there is none. | ||
#' @param dirPath is a directory pas as a string | ||
#' @importFrom ggplot2 geom_sf guides ggtitle aes | ||
#' @return the same string if it ended with a slash, else the string with a slash at its end | ||
#' @export | ||
#' @examples | ||
#' grr<-"test" | ||
#' checkDirSlash(grr) | ||
checkDirSlash<-function(dirPath){ | ||
if ( substring(dirPath, nchar(dirPath), nchar(dirPath)) != "/"){ | ||
dirPath<-paste0(dirPath, "/") | ||
} | ||
return(dirPath) | ||
} | ||
|
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
colorMap<-c("#8b0101","#cc0200","#fc0001","#be4c03","#ff6602","#ff9856", | ||
"#fbed08","#bcbcba","#ffcca7","#57555a","#006700","#05aa05", | ||
"#648423","#bbdb7a","#010101","#fdf6ae","#6d67fd", "ghostwhite") | ||
names(colorMap)<-as.character(c(1:10,101:107, "Unclassified")) | ||
etiquettes<-c("LCZ 1: Compact high-rise","LCZ 2: Compact mid-rise","LCZ 3: Compact low-rise", | ||
"LCZ 4: Open high-rise","LCZ 5: Open mid-rise","LCZ 6: Open low-rise", | ||
"LCZ 7: Lightweight low-rise","LCZ 8: Large low-rise", | ||
"LCZ 9: Sparsely built","LCZ 10: Heavy industry", | ||
"LCZ A: Dense trees", "LCZ B: Scattered trees", | ||
"LCZ C: Bush,scrub","LCZ D: Low plants", | ||
"LCZ E: Bare rock or paved","LCZ F: Bare soil or sand","LCZ G: Water", "Unclassified") | ||
colorMapDefault <- c("#8b0101", "#cc0200", "#fc0001", "#be4c03", "#ff6602", "#ff9856", | ||
"#fbed08", "#bcbcba", "#ffcca7", "#57555a", "#006700", "#05aa05", | ||
"#648423", "#bbdb7a", "#010101", "#fdf6ae", "#6d67fd", "ghostwhite") | ||
names(colorMapDefault) <- as.character(c(1:10, 101:107, "Unclassified")) | ||
etiquettesDefault <- c("LCZ 1: Compact high-rise", "LCZ 2: Compact mid-rise", "LCZ 3: Compact low-rise", | ||
"LCZ 4: Open high-rise", "LCZ 5: Open mid-rise", "LCZ 6: Open low-rise", | ||
"LCZ 7: Lightweight low-rise", "LCZ 8: Large low-rise", | ||
"LCZ 9: Sparsely built", "LCZ 10: Heavy industry", | ||
"LCZ A: Dense trees", "LCZ B: Scattered trees", | ||
"LCZ C: Bush,scrub", "LCZ D: Low plants", | ||
"LCZ E: Bare rock or paved", "LCZ F: Bare soil or sand", "LCZ G: Water", "Unclassified") | ||
|
||
typeLevelsDefault <- c("1" = "1", "2" = "2", "3" = "3", "4" = "4", "5" = "5", "6" = "6", "7" = "7", "8" = "8", | ||
"9" = "9", "10" = "10", | ||
"101" = "101", "102" = "102", "103" = "103", "104" = "104", "105" = "105", "106" = "106", "107" = "107", | ||
"101" = "11", "102" = "12", "103" = "13", "104" = "14", "105" = "15", "106" = "16", "107" = "17", | ||
"101" = "A", "102" = "B", "103" = "C", "104" = "D", "105" = "E", "106" = "F", "107" = "G", "Unclassified" = "Unclassified") |
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
Oops, something went wrong.