Rows As Stacked Bar Plot Using ggplot2 In R
问题 I am just getting started with ggplot2() (data visualization) in R . The data I have has different workloads in row format. Each of these column has four different parameters that I want to plot as stacked bar plot, preferably using ggplot2() . Reproducible Data Workload P1 P2 P3 P4 W1 0.3 0.2 0.4 0.1 W2 0.5 0.1 0.3 0.1 W3 0.2 0.3 0.4 0.1 W4 0.3 0.2 0.5 0.1 I want to plot Workload as x-axis and then P1 , P2 , P3 and P4 will be stacked for each of the workload on y-axis . I tried many things,