Hi,
My data file contains 100 rows and I want to specify a range of rows for some ggplot commands. Example is:
> mydata[1:6,]
GIPS II IPC WG CTG INST
bfs.1m.in_GPU 0.2505082 2.545049 12.923794 0.2986669 P 22868795
bfs.1m.multi_blk 1.7991085 9.456810 7.193173 0.1662331 P 498241029
bfs.ny.in_GPU 0.1428251 3.407084 16.787908 0.3879660 P 2356866
bfs.ny.multi_blk 1.4833925 14.484976 6.366725 0.1471340 P 21425712
cutcp.cutoff
263.4206978 6772.552997 219.138497 1.0000000 P 6445203210
histo.final 9.0960910 2.306704 11.723162 0.0868549 P 10267648
WRK
bfs.1m.in_GPU P1
bfs.1m.multi_blk P1
bfs.ny.in_GPU P1
bfs.ny.multi_blk P1
cutcp.cutoff P2
histo.final P3
However, when I use the following command
> ggplot(mydata[1:6,], aes(x = WRK)) + geom_violin(aes(y = GIPS, weight = WG), trim = FALSE)
I see the violin plot only for P1 (in the WRK column). I don't know why other rows (mydata[5:6,]) are not shown. The figure is available at
https://pasteboard.co/JYpafxN.pngAny thoughts on that?