R-graph-gallery icon indicating copy to clipboard operation
R-graph-gallery copied to clipboard

Error in stacked circular boxplot with the R Graph Gallery code

Open mhmjuliao opened this issue 2 years ago • 0 comments

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

mhmjuliao avatar Aug 01 '22 12:08 mhmjuliao