I have data frame like this
AA=
States Clusters ncomp
HR Cluster-1 9
HR Cluster-2 4
HR Cluster-3 9
WB Cluster-1 13
WB Cluster-2 13
WB Cluster-3 13
WB Cluster-4 13
TL Cluster-1 9
TL Cluster-2 11
TL Cluster-3 9
TL Cluster-4 10
TL Cluster-5 11
TL Cluster-6 7
OR Cluster-1 15
OR Cluster-2 15
OR Cluster-3 15
OR Cluster-4 14
OR Cluster-5 15
OR Cluster-6 15
Need to plot which looks as. I don't want to use facet_wrap. I can create grouped point plot
You can try a hidden
facet_grid
and one tidyverse line to separate theCluster
column. This can be done also byave
likeAnother approach is using an interaction term like this:
The fancy
{}
must be done to pipe break and label values.