I'm trying to make a bar graph with ggplot and Shiny in R, but my data is structured in a weird way that seems to make this task more difficult than expected. The dataframe looks something like this:
Name Percent 1 Percent 2 Percent 3
A 45 10 45
B 30 20 50
C 10 35 55
Basically, I'd want to make my bar graph to show each percent as a "bar" based on what someone selects. For example, if my Shiny app has a dropdown menu that says "select name" and someone picks A, the resulting graphic should be three bars that show 45%, 10%, and 45%, with "Percent 1", "Percent 2", and "Percent 3" as the labels.
Thanks for any help!