GithubHelp home page GithubHelp logo

facet_wrap ? about ggradar HOT 2 OPEN

ricardo-bion avatar ricardo-bion commented on June 20, 2024
facet_wrap ?

from ggradar.

Comments (2)

tashapiro avatar tashapiro commented on June 20, 2024 1

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))

from ggradar.

nickschurch avatar nickschurch commented on June 20, 2024

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)

from ggradar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.