ggradar
ggradar copied to clipboard
Radar graph with missing values
Hi Ricardo,
I've been trying to do a ggradar plot with some missing values, and the following error pops up:
Error in if (min(plot.data[, -1]) < centre.y) { : missing value where TRUE/FALSE needed
The code which I've run is the following:
library(ggradar) library(dplyr) library(scales) library(tibble) datos=read.table(file = "Datos_SDM.csv", sep = ";", header = T, dec = ",") head(datos) data= datos[, c(2:13)] head(data) row.names(data)= c("2010", "2020", "2030", "2040", "2050") data data_radar= data%>% as_tibble(rownames = "year")%>% mutate_at(vars(-year), rescale, to= c(0, 10))%>% select(1:6) ggradar(data_radar, values.radar = c("0", "2", "4", "6", "8", "10"), grid.min = 0, grid.mid = 5, grid.max = 10)
Is it possible to do a ggradar plot with missing values? If so how should I do it?
Many thanks, Javier
I have the same question and no answer.
It would be ideal if missing values are just not plotted by default like in geom_point
or geom_line
I would also like to know if this is possible.
I also have the same question.
I also want to deal with NA