I need to exclude the empty observations i.e. to be able to see only the bars and not the blank observations Now it is somehow wrong...
ggplot( frame, aes( y = sil_width, x = observation) )+
coord_flip()+
geom_bar(stat="identity") +
facet_grid( cluster~., labeller = label_both)
> frame
cluster neighbor sil_width observation
10 1 2 0.9044976 10
6 1 2 0.9040205 6
2 1 2 0.8969660 2
4 1 2 0.8966644 4
1 1 2 0.8959830 1
5 1 2 0.8866528 5
9 1 2 0.8548683 9
7 1 2 0.8408474 7
3 1 2 0.8389057 3
8 1 2 0.7521333 8
12 2 1 0.9252061 12
15 2 1 0.9250464 15
17 2 1 0.9189154 17
20 2 1 0.9171968 20
13 2 1 0.9144334 13
24 2 1 0.9106160 24
19 2 1 0.9072514 19
18 2 1 0.8991627 18
14 2 1 0.8931934 14
23 2 1 0.8919554 23
16 2 1 0.8877312 16
22 2 1 0.8794240 22
11 2 1 0.8777455 11
21 2 1 0.8660889 21
25 2 1 0.7620662 25