Giter Site home page Giter Site logo

Comments (4)

IndrajeetPatil avatar IndrajeetPatil commented on May 23, 2024 1

@yech1990 Hmm, it is true that this is a bit of an inconsistent behavior on ggstatsplot's part, but I've deliberately not included those arguments for ggscatterstats because there are only two colors, which are already being specified by arguments xfill and yfill.

One possible thing I can do is change xfill and yfill defaults to NULL and as long as they are not specified, 2 colors from a given package and palette can be retrieved. Does that like a reasonable approach?

P.S. ggcorrmat doesn't have these arguments either.

from ggstatsplot.

IndrajeetPatil avatar IndrajeetPatil commented on May 23, 2024 1

Yeah, this is something that I want to implement for sure. But this will not be part of 0.0.6 release. Probably 0.0.7 or 0.0.8.

from ggstatsplot.

IndrajeetPatil avatar IndrajeetPatil commented on May 23, 2024

Setting either xfill or yfill to NULL will now deactivate manual specification of colors and package and palette arguments will come into effect.

ggstatsplot::ggscatterstats(
  data = mtcars,
  x = wt,
  y = mpg,
  xfill = NULL,
  package = "wesanderson",
  palette = "Royal1"
)
#> Warning: The plot is not a `ggplot` object and therefore can't be further modified with `ggplot2` functions.
#> 

Created on 2018-09-29 by the reprex package (v0.2.1)

from ggstatsplot.

y9c avatar y9c commented on May 23, 2024

Thanks your very much, @IndrajeetPatil .

It is reasonable to pass color palette in these way.

I were confused with the usage of ggscatterstats at the beginning. I don't realized that there is only two colors in the scatter plot.

I mistakenly thought ggscatterstats can visualize multiple group of data in a single figure as the example below, in which case color palette is of great importance.

image

https://stackoverflow.com/questions/35920885/how-to-overlay-a-seaborn-jointplot-with-a-marginal-distribution-histogram-fr

from ggstatsplot.

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.