Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radar graph with missing values #39

Open
Javier27272 opened this issue Mar 26, 2020 · 4 comments
Open

Radar graph with missing values #39

Javier27272 opened this issue Mar 26, 2020 · 4 comments

Comments

@Javier27272
Copy link

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

@georgeblck
Copy link

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

@rmadden93
Copy link

I would also like to know if this is possible.

@laurianeribas-deulofeu
Copy link

I also have the same question.

@haokaitseng
Copy link

I also want to deal with NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants