我的图表的标题重叠。我怎样才能解决这个问题?
The captions of my graph are overlapping. How can I fix this?
所以我正在绘制这段代码,但是文本重叠了。我怎样才能解决这个问题?
mayors <- read.csv("https://raw.githubusercontent.com/umbertomig/intro-prob-stat-FGV/master/datasets/brmayors.csv")
head(mayors)
mosaicplot(table(mayors$SIGLA_PARTIDO, mayors$DESCRICAO_SEXO), main = "Gender by party", color = "turquoise")
mosaicplot(table(mayors$SIGLA_PARTIDO, mayors$DESCRICAO_GRAU_INSTRUCAO), main = "Level of education by party", color = "plum")
您可以使用 las =
控制轴标签的方向。您还可以使用 cex.axis =
控制文本的大小。
mosaicplot(table(mayors$SIGLA_PARTIDO, mayors$DESCRICAO_GRAU_INSTRUCAO),
main = "Level of education by party",
color = "plum",
las = 2,
cex.axis = 0.5)
所以我正在绘制这段代码,但是文本重叠了。我怎样才能解决这个问题?
mayors <- read.csv("https://raw.githubusercontent.com/umbertomig/intro-prob-stat-FGV/master/datasets/brmayors.csv")
head(mayors)
mosaicplot(table(mayors$SIGLA_PARTIDO, mayors$DESCRICAO_SEXO), main = "Gender by party", color = "turquoise")
mosaicplot(table(mayors$SIGLA_PARTIDO, mayors$DESCRICAO_GRAU_INSTRUCAO), main = "Level of education by party", color = "plum")
您可以使用 las =
控制轴标签的方向。您还可以使用 cex.axis =
控制文本的大小。
mosaicplot(table(mayors$SIGLA_PARTIDO, mayors$DESCRICAO_GRAU_INSTRUCAO),
main = "Level of education by party",
color = "plum",
las = 2,
cex.axis = 0.5)