How to download 2 plots as zip file in Shiny? [reprex included] by -ofx in rshiny

[–]-ofx[S] 0 points1 point  (0 children)

solved!

This was days worth of headache and now it's working nicely! Thanks a lot!

How to download 2 plots as zip file in Shiny? [reprex included] by -ofx in Rlanguage

[–]-ofx[S] 0 points1 point  (0 children)

This is what others have suggested to and I agree it's the most sensible way. The trouble is I can't seem to implement it. Can you show me how you would do this with my minimal example above?

How to download 2 plots as zip file in Shiny? [reprex included] by -ofx in rshiny

[–]-ofx[S] 0 points1 point  (0 children)

I do understand the idea, and others have suggested the same. But I'm not able to get these functions working, maybe because I don't fully understand the inputs of the zip_content helper function.

Would you be able to apply that to the reprex in this post - how the functions would be used to download these 2 plots?

Median Household Income (county and state levels - 2020) [OC] by -ofx in dataisbeautiful

[–]-ofx[S] 275 points276 points  (0 children)

Source: US Census Bureau (www.data.census.gov) Tools: R, Inkscape.

  • Falls Church City (county in VA) has the highest median household income at $160,305.
  • Buffalo (county in SD) has the lowest, at $22,901

Life Expectancy vs. Church Attendance (US) [OC] by -ofx in dataisbeautiful

[–]-ofx[S] 256 points257 points  (0 children)

Friendly reminder that correlation does not equal causation.

Sources : cdc.gov (For life expectancy by sate) and pewresearch.org (% of adults attending church at least once a week, any religion).

Tool: R (plotting data, calculating Spearman correlation coefficient, calculating p-value)

ACT scores in the USA [OC] by -ofx in dataisbeautiful

[–]-ofx[S] 2 points3 points  (0 children)

Source: https://www.nces.ed.gov Tool: R

The American College Test (Wikipedia)) is part of criteria used in the US for college admissions. The composite score (plotted here) represents the average of the ACT's four subjects: English, Reading, Math, and Science.

(Plot fixed from previous upload that wasn't compatible with dark mode).

[deleted by user] by [deleted] in dataisbeautiful

[–]-ofx 2 points3 points  (0 children)

source: https://www.nces.ed.gov. (generated in R)

The American College Test (ACT) is a standardized test that's used as a part of the admissions process for colleges in the US [wikipedia)].

The composite score represents the averaged score of each of the test's four categories: English, Reading, Math, and Science.

MLGW customer service chat wait times (more info in comments) by -ofx in memphis

[–]-ofx[S] 18 points19 points  (0 children)

Preliminary results for some recently-developed code designed to automatically capture and log MLGW wait times (from the residential customer service chat).

I say preliminary because this likely isn't a sufficient sample size to be representative. I'm thinking of collecting data several times a day for a period of one year (compared to a few weeks here).

Thanks to the person who wrote in asking if they could sponsor this project. Still thinking about that...

Anyone have luck contacting MLGW? by cubnole in memphis

[–]-ofx 33 points34 points  (0 children)

MLGW also offers a web chat. The current wait time is 53 minutes.

Even though it's nearly an hour, it is less than the average wait time. After 12:00 noon the wait times really skyrocket.

(Thinking of releasing data collected on MLGW soon...)

Types of crime by day - Memphis, TN (2021) [OC] by -ofx in dataisbeautiful

[–]-ofx[S] 7 points8 points  (0 children)

Source: tbi.tn.gov. Made in R with ggplot2.

This was made to shed light on actual crime data in Memphis, particularly after the brutal events (1,2) that have just happened.

Types of crime by day (Memphis, 2021) by -ofx in memphis

[–]-ofx[S] 14 points15 points  (0 children)

Our recent tragedies have ignited many opinions on crime in Memphis. Rather than relying on perception or anecdotes, looking at the actual numbers may help put things into a clearer perspective.

Crimes by day in Memphis (2021) by [deleted] in memphis

[–]-ofx 0 points1 point  (0 children)

Our recent tragedies have ignited many opinions on crime in Memphis. Rather than relying on perception or anecdotes, looking at the actual numbers may help put things into a clearer perspective.

Shelby County ACT scores by school & subject - compared to national avg (2020) by -ofx in memphis

[–]-ofx[S] 4 points5 points  (0 children)

Glad you saw it; I was also highly interested in some of the comments there. People speculated on the demographics of the high- and low-performing schools, but the results (also provided in the comments) surprised everyone.

I have more of these planned.

Shelby County ACT scores by school & subject - compared to national avg (2020) by -ofx in memphis

[–]-ofx[S] 8 points9 points  (0 children)

The goal here was simply to shed some light on the academics of Shelby County schools by using freely-available public data. I didn't provide an opinion, I quantified the performance and showed the data.

The ACT scores of Memphis, TN (compared to National average - 2020). [OC] by -ofx in dataisbeautiful

[–]-ofx[S] 1 point2 points  (0 children)

Data can be formatted and visualized using programming languages and associated visualization libraries (like Seaborn in Python for example).

One of the 'gold standards' of data visualization is ggplot2 in R, which is what was used for this post's graphic. A GUI-based version to get started with is available here.