ggradar icon indicating copy to clipboard operation
ggradar copied to clipboard

Radar graph with missing values

Open Javier27272 opened this issue 4 years ago • 4 comments

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

Javier27272 avatar Mar 26 '20 17:03 Javier27272

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

georgeblck avatar Mar 07 '21 16:03 georgeblck

I would also like to know if this is possible.

rmadden93 avatar Dec 01 '21 19:12 rmadden93

I also have the same question.

laurianeribas-deulofeu avatar Jan 18 '24 03:01 laurianeribas-deulofeu

I also want to deal with NA

haokaitseng avatar Feb 12 '24 16:02 haokaitseng