Giter Site home page Giter Site logo

Comments (5)

IndrajeetPatil avatar IndrajeetPatil commented on July 29, 2024

Unfortunately, this is currently not possible and I am not sure if this will ever be supported since all expressions try to follow a specific template:

That said you can always adapt the returned expression to your need by deleting certain parts of the expression.

Maybe I can add an example to the documentation to show how to do this.

from statsexpressions.

IndrajeetPatil avatar IndrajeetPatil commented on July 29, 2024

Unfortunately, this is currently not possible and I am not sure if this will ever be supported since all expressions try to follow a specific template:

That said you can always adapt the returned expression to your need by deleting certain parts of the expression.

Maybe I can add an example to the documentation to show how to do this.

from statsexpressions.

kwakuduahc1 avatar kwakuduahc1 commented on July 29, 2024

Many thanks.

from statsexpressions.

IndrajeetPatil avatar IndrajeetPatil commented on July 29, 2024

Here is an example:

# setup
set.seed(123)
library(ggplot2)
library(statsExpressions)

# extracting detailed expression
(res_expr <- expr_anova_parametric(iris, Species, Sepal.Length, var.equal = TRUE))
#> paste(NULL, italic("F")["Fisher"], "(", "2", ",", "147", ") = ", 
#>     "119.26", ", ", italic("p"), " = ", "1.67e-31", ", ", widehat(omega["p"]^2), 
#>     " = ", "0.61", ", CI"["95%"], " [", "0.52", ", ", "0.68", 
#>     "]", ", ", italic("n")["obs"], " = ", 150L)

# adapting the details to your liking
ggplot(iris, aes(x = Species, y = Sepal.Length)) +
  geom_boxplot() +
  labs(subtitle = ggplot2::expr(paste(
    NULL, italic("F"), "(", "2",
    ",", "147", ") = ", "119.26", ", ",
    italic("p"), " = ", "1.67e-31"
  )))

image

from statsexpressions.

kwakuduahc1 avatar kwakuduahc1 commented on July 29, 2024

Many thanks.

from statsexpressions.

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.