How can I solve non-finite location and/or size for viewport error?
问题 Here is a simplified and testable example: dataset <- data.frame( emp_month = c("January","March","April","May","December"), salary = c(623.3,515.2,611.0,729.0,843.25)) library(ggplot2) ggplot(dataset)+ geom_boxplot(aes(x = sort(factor(emp_month)), y = salary))+ geom_point(aes( x = sort(factor(emp_month)), y=salary))+ facet_grid(. ~ sort(factor(emp_month)),space = "free", scales="free",margins = T) Error Description: I can write this code library(ggplot2) MesDeConclusao = factor