Hi I'm very new to using R so I know this is a basic/silly question, but I've been struggling with it for a few days!
I'm creating mosaic plots with my data and I'm struggling to figure out how to change different design features of these plots.
This is the code I used to create the plot below:
mosaicplot(~ factor(S1, labels = c("Negative", "Positive")) + factor(Q2b_g, labels = c("Sell before\nweaning", "Sell after\nweaning","Finish","Other")), data = Q_2bg, xlab = "Serology result", ylab = "Length of time rear dairy\nbull & beef calves", main = "How long do you rear dairy bull & beef calves?")
I'd like to reduce the size of all of the text on the figure and I've searched for code online and have not been able to find anything that works!
I have seen suggestions on forums to input this:
labeling = vcd::labeling_border(rot_labels = c(45, 45))
But when I added this into my code it didn't work, and other than that I have not found any other suggestions!
Any help would be much appreciated!