-
Notifications
You must be signed in to change notification settings - Fork 99
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
Comments
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()+ |
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:
|
Was there an answer to this? I have a similar issue:
|
Same error. Here is the code: radar2 <- radar1 + radar2 `
Session info: `
Packages ─────────────────────────────────────────────────────── [1] C:/Users/iaguilar/AppData/Local/R/win-library/4.3 Thanks for your time. |
@williamlai2 From inspecting the returned mtcars_radar <- mtcars %>%
tibble::as_tibble(rownames = "group") %>%
dplyr::mutate(across(-group, scales::rescale)) %>%
tail(4) %>%
dplyr::select(1:10)
ggradar::ggradar(mtcars_radar) +
ggplot2::facet_wrap(~`Group.1`) The key is that from ggplot's perspective, the grouping variable is actually named "Group.1" (source).
|
Is there an equivalent for facet_wrap?
The text was updated successfully, but these errors were encountered: