For this project, I have to use just basic r So I am making a bunch of boxplots and want their widths to be varied based on how many people answered each response, but the data is separated by country. So when I use
boxplot(timetravel~country+travel,data=data,varwidth=TRUE)
the width is based on number of the responses out of the whole. However there are twice as many responses from New Zealand than from the US. Is there a way to do something where width is halved if country="New Zealand"
Sorry if this is a confusing question I'm very new to R
This is the current graph, the New Zealand Boxplots are twice as large bc there was a twice as large sample size