Git Product home page Git Product logo

Comments (1)

jhrcook avatar jhrcook commented on May 28, 2024 1

Thank you for supplying a simple reproducible example. I was able to reproduce the error and would suggest the following changes. I think you are just using the package in a slightly different way than intended. It's not your fault, I just had to choose a single API and went with the one that is currently available.

# modifying it to the format expected by ggasym
asymmat_tib <- tidyr::unite(
  df,
  "contrast",
  Parameter1:Parameter2,
  remove = FALSE
) %>%
  parameters::standardize_names("broom") %>%
  tibble::as_tibble() %>%
  asymmetrise(parameter1, parameter2)  # use `asymmetrise()` function

ggplot(asymmat_tib, aes(x = parameter1, y = parameter2)) +
  geom_asymmat(aes(fill_tl = estimate, fill_br = -log(p.value))) +
  scale_fill_tl_gradient() +  # you need to add fill modifiers
  scale_fill_br_gradient()    # you need to add fill modifiers

example-plot

I will close this issue for now, but let me know if you are still running into issues or would like further explanation. Perhaps I will add support for the 'correlation' package with asymmetrise_stats() in the future, but I don't have any plans to do so at the moment.

from ggasym.

Related Issues (17)

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.