R-graph-gallery
R-graph-gallery copied to clipboard
Error in stacked circular boxplot with the R Graph Gallery code
Hello, I am trying to prepare a stacked barplot from code of the R Graph Gallery (https://r-graph-gallery.com/index.html). The error is
label_data$hjust <- ifelse( angle < -90, 1, 0) Error in
$<-.data.frame
(*tmp*
, hjust, value = logical(0)) : replacement has 0 rows, data has 1 label_data$angle <- ifelse(angle < -90, angle+180, angle) Error in$<-.data.frame
(*tmp*
, angle, value = logical(0)) : replacement has 0 rows, data has 1
I apreciate if someone could help me. Thanks a lot