How can I change labels in the R VCD package in a mosaic plot?

473 views Asked by At

I am trying to create a mosaic plot using the VCD package, and wanted to know if I can change the labels on the plot, as the current ones are overlapping.

The data is from the behavioral risk factor surveillance system

I am using the following code:

mosaic(~income2+carercvd, data=brfss2013,
labeling=labeling_border(labels=TRUE, rot_labels = c(0,0),
just_labels = c("left","right")),set_labels=c("<10k","<15k","<20k","<25k","<35k","<50k","<75k",">75k"))

However, I am receiving the following output: Mosaic Plot

Can anyone help me fix my mosaic plot please?

0

There are 0 answers