[R] bar plot issues

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Oct 21 09:51:14 CEST 2011



On 20.10.2011 22:29, Henri-Paul Indiogine wrote:
> Hi Uwe!
>
> 2011/10/20 Uwe Ligges<ligges at statistik.tu-dortmund.de>:
>> arrange it outside by, e.g. increasing the size of margins (see argument
>> "mar" in ?par) and place a separate legend (see ?legend) into the margins
>> (see xps argument in ?par).
>
> I could not find 'xps',  do you mean 'xpd'?

Yes, sorry, a typo.

Best,
Uwe


>
> This is what I have so far:
>
>> par(mar=c(5.1,4.1,4.1,12.1))
>> barplot(t(file.codes), beside = FALSE, legend = FALSE, main="test stacked bar plot", xlab="documents", ylab="number of codes", col=rainbow(ncol(file.codes)), names.arg = rep(NA, nrow(file.codes)))
>
> danke,
> Henri-Paul
>



More information about the R-help mailing list