We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
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
geom_point
geom_line
Sorry, something went wrong.
I would also like to know if this is possible.
I also have the same question.
I also want to deal with NA
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: