# fill.palette: single character string of a palette name (see ?ggplot2::scale_fill_brewer() for the list).Ignored if fill.color is not NULL
# fill.palette: single character string of a palette name (see ?ggplot2::scale_fill_brewer() for the list).Ignored if fill.color is not NULL
# fill.color: either (1) NULL, or (2) a vector of character strings or integers of same length as the number of classes in categ. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette). The order of the elements will be used according to the frequency values, from highest to lowest. An easy way to use this argument is to sort data1 according to the frequencies values, add a color column with the corresponding desired colors and use the content of this column as values of fill.color. If color is NULL and fill.palette is NULL, default colors of ggplot2 are used. If color is not NULL, it overrides fill.palette
# fill.color: either (1) NULL, or (2) a vector of character strings or integers of same length as the number of classes in categ. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette). The order of the elements will be used according to the frequency values, from highest to lowest. An easy way to use this argument is to sort data1 according to the frequencies values, add a color column with the corresponding desired colors and use the content of this column as values of fill.color. If color is NULL and fill.palette is NULL, default colors of ggplot2 are used. If color is not NULL, it overrides fill.palette
# hole.size: single positive proportion of donut central hole, 0 meaning no hole and 1 no donut
# hole.size: single positive proportion of donut central hole, 0 meaning no hole and 1 no donut
# hole.text.size: single positive numeric value of the title font size in mm
# hole.text: logical (either TRUE or FALSE). Display the sum of frequencies (column of data1 indicated in the freq argument) ?
# hole.text.size: single positive numeric value of the title font size in mm. Ignored if hole.text is FALSE
# border.color: a single character string or integer. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette)
# border.color: a single character string or integer. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette)
# border.size: single numeric value of border tickness in mm. Write zero for no dot border
# border.size: single numeric value of border tickness in mm. Write zero for no dot border
# title: single character string of the graph title
# title: single character string of the graph title
# fill.palette: single character string of a palette name (see ?ggplot2::scale_fill_brewer() for the list).Ignored if fill.color is not NULL
# fill.palette: single character string of a palette name (see ?ggplot2::scale_fill_brewer() for the list).Ignored if fill.color is not NULL
# fill.color: either (1) NULL, or (2) a vector of character strings or integers of same length as the number of classes in categ. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette). The order of the elements will be used according to the frequency values, from highest to lowest. An easy way to use this argument is to sort data1 according to the frequencies values, add a color column with the corresponding desired colors and use the content of this column as values of fill.color. If color is NULL and fill.palette is NULL, default colors of ggplot2 are used. If color is not NULL, it overrides fill.palette
# fill.color: either (1) NULL, or (2) a vector of character strings or integers of same length as the number of classes in categ. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette). The order of the elements will be used according to the frequency values, from highest to lowest. An easy way to use this argument is to sort data1 according to the frequencies values, add a color column with the corresponding desired colors and use the content of this column as values of fill.color. If color is NULL and fill.palette is NULL, default colors of ggplot2 are used. If color is not NULL, it overrides fill.palette
# hole.size: single positive proportion of donut central hole, 0 meaning no hole and 1 no donut
# hole.size: single positive proportion of donut central hole, 0 meaning no hole and 1 no donut
# hole.text.size: single positive numeric value of the title font size in mm
# hole.text: logical (either TRUE or FALSE). Display the sum of frequencies (column of data1 indicated in the freq argument) ?
# hole.text.size: single positive numeric value of the title font size in mm. Ignored if hole.text is FALSE
# border.color: a single character string or integer. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette)
# border.color: a single character string or integer. Colors can be color names (see ?colors() in R), hexadecimal color codes, or integers (according to the ggplot2 palette)
# border.size: single numeric value of border tickness in mm. Write zero for no dot border
# border.size: single numeric value of border tickness in mm. Write zero for no dot border
# title: single character string of the graph title
# title: single character string of the graph title
tempo2<-fun_check(data=border.color,class="integer",double.as.integer.allowed=TRUE,neg.values=FALSE,na.contain=FALSE,length=1,fun.name=function.name)# not need to test inf with integers
tempo2<-fun_check(data=border.color,class="integer",double.as.integer.allowed=TRUE,neg.values=FALSE,na.contain=FALSE,length=1,fun.name=function.name)# not need to test inf with integers
...
@@ -256,6 +259,7 @@ fun_gg_donut <- function(
...
@@ -256,6 +259,7 @@ fun_gg_donut <- function(
# "fill.palette", # inactivated because can be null
# "fill.palette", # inactivated because can be null