Coder Social home page Coder Social logo

Comments (4)

edgararuiz-zz avatar edgararuiz-zz commented on August 18, 2024

Hi, thanks for your feedback! Not sure why is not working for you. The only thing I can think off is that the fill argument needs to be "outside" the aes() function, for example: geom_col(aes(arr_delay, count), fill = "red"). Here is a full example that worked on my machine:

flights %>%
  filter(arr_delay < 100 , arr_delay > -50) %>%
  db_compute_bins(arr_delay) %>%
  ggplot() +
  geom_col(aes(arr_delay, count), fill = "red")

from dbplot.

EarlGlynn avatar EarlGlynn commented on August 18, 2024

You were right. I had tried "fill" in the wrong place. BTW, is there any parameter to, or some sort of modification, that allows changing the default color of a histogram using dbplot_histogram directly?

dbplot functions have worked well for me on tables of ~400 million records so far. Hope to see if it works on several billion records in the near future. Thanks for writing dbplot!

from dbplot.

edgararuiz-zz avatar edgararuiz-zz commented on August 18, 2024

That's great to hear! Thank you.

Let me see what I can do regarding additional parameters for dbplot_histogram(). It may be that we could just pass additional arguments passed to dbplot_histogram() directly to the geom, the only challenge would be to decide if we're to have a way to know if the parameter should go inside or outside aes()

from dbplot.

filipwastberg avatar filipwastberg commented on August 18, 2024

Maybe just a fill_manual or color_manual argument inside dbplot_? To emphasize that the parameter is outside aes()?

from dbplot.

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.