我有以下数据:
structure(list(Sexo = structure(c(1L, 2L, 1L, 2L), .Label = c("Female",
"Male"), class = "factor"), Status = structure(c(1L, 1L, 2L,
2L), .Label = c("Active", "Terminated"), class = "factor"), Freq = c(1367L,
7030L, 394L, 940L)), class = "data.frame", row.names = c(NA,
-4L))
当我尝试绘制它时,它显示所有错误。请问我在做什么错?
razao1%>%
ggplot(aes(x=as.factor(Status), fill = factor(Status)))+
geom_bar(position = "fill")+
facet_wrap(~Sexo)