Code Monkey home page Code Monkey logo

Comments (11)

zross avatar zross commented on June 17, 2024

OK, I'll take a look. Fixing ones that don't plot is likely easier than formatting issues depending on the issue.

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

Not plotting:

  • 24
  • 70a
  • 70b

Display issue:

  • 39

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

@Court78 what is wrong with the plots 41, 51b, 51c, 51d, 51e? Note that Abel had 51d and 51e showing the same plot and same for 51a, 51b, 51c. See #18. Is it that they show the same plot?

from hhs_dashboard.

Court78 avatar Court78 commented on June 17, 2024

The app isn't loading in the portal and I can't remember... :)

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

Hmm. I have not touched shinyapps. But I'm about to upload a fixed version of plots so perhaps that will get shinyapps going.

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

Seems to be working now with the update. The plots where you saw issues are fixed.

I just sent you a note about access to shinyapps.io for the logs. I probably do need to look at the logs since the 51 plots all show fine for me locally but they generate an error on shinyapps.io.

Local
image

shinyapps
image

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

OK, I figured it out. All plots are fixed except I don't know what the issue with 41 is. Is it that the values "100" are being cutoff on the right?

from hhs_dashboard.

Court78 avatar Court78 commented on June 17, 2024

thank you! 41 is just that the first column heading is cut off

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

@Court78 ok this is fixed but keep in mind the following:

There is no automatic wrapping of titles in ggplot2 so it's either a bit of an imperfect hack (as is the case here) or significant time investment. With 70+ plots there are likely other title issues.

You can see the code in the block below. label_wrap_val essentially says if you have this many characters apply wrapping. It was set to 15 and now it's set to 14 so "Community only" wraps. And this applies to the rare situation where you have 6 or more facets.

if(facet_var_str != " "){
label_wrap_val <- 20 # good example is knowledge/41
l <- .data[[facet_var_str]] %>% unique() %>% length()
if(l >= 6) label_wrap_val <- 15
p <- p + facet_wrap( vars({{ facet_var }}), labeller = label_wrap_gen(label_wrap_val), nrow = 1)
}
p
}

from hhs_dashboard.

zross avatar zross commented on June 17, 2024

I propose you close this issue and as new issues arise you open a new issue for each plot.

from hhs_dashboard.

Court78 avatar Court78 commented on June 17, 2024

Thanks Zev! Will do

from hhs_dashboard.

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.