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

facet_wrap ? #42

Open
Ttytamaki opened this issue Apr 9, 2021 · 2 comments
Open

facet_wrap ? #42

Ttytamaki opened this issue Apr 9, 2021 · 2 comments

Comments

@Ttytamaki
Copy link

Ttytamaki commented Apr 9, 2021

Is there an equivalent for facet_wrap?

@tashapiro
Copy link

I was browsing for a similar answer earlier. I discovered you can use ggplot's facet_wrap function in combination with ggradar to produce facets:

ggradar()+
facet_wrap(vars(group))

@nickschurch
Copy link

How do you provide the grouping info though? When I try to provide a dataframe with a samples column and a group column, I get the error:

Error in FUN(X[[i]], ...) :
only defined on a data frame with all numeric-alike variables
6.
stop("only defined on a data frame with all numeric-alike variables")
5.
FUN(X[[i]], ...)
4.
lapply(args, function(x) {
x <- as.matrix(x)
if (!is.numeric(x) && !is.logical(x) && !is.complex(x))
stop("only defined on a data frame with all numeric-alike variables") ...
3.
Summary.data.frame(structure(list(na = c(4.58, 13.45, 8.35, 8.58,
7.76, 11.6, 3.91, 3.04, 4.1, 2.9, 5.17, 3.44, 6.93, 1.9, 10.35,
8.58, 9.72, 7.01, 1.5, 1.98, 2.11, 3.13, 1.47, 1.12, 0.98, 1.21,
1.04, 1.63, 1.49, 1.34, 2.51, 1.78, 2.81, 2.61, 2.12, 2.72, 3.14, ...
2.
ggradar(., grid.min = 0, grid.max = 100)
1.
data %>%
ggradar(grid.min = 0, grid.max = 100)

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

3 participants