Hi

> barplot(data, las=2, ylim = c(0,plotMax+1), ylab = "Percentage", 
main = filename, sub = subtitle)
Error in barplot.default(data, las = 2, ylim = c(0, plotMax + 1), 
ylab = "Percentage",  : 
        'height' must be a vector or a matrix
>

Your code gives me an error, as I do not have data file.Try to use 
oma and title with outer option set as TRUE. 
See ?title, ?par

But it depends on your intention. and actual lookout of your plot.

HTH
Petr



On 23 Nov 2006 at 15:57, Antje wrote:

Date sent:              Thu, 23 Nov 2006 15:57:39 +0100
From:                   Antje <[EMAIL PROTECTED]>
To:                     R-help@stat.math.ethz.ch
Subject:                [R] barplot - x-axis

> Hi there,
> 
> I have a barplot and the labels at the x-axis are strings, which are
> rotated by 90°. But now the sub-title of the barplot is in between
> these labels, which does not look very nice... Could anybody help me
> finding the parameter-setting to prevent this?
> 
> par(mai=c(1.5,1,1,0.6))
> barplot(data, las=2, ylim = c(0,plotMax+1), ylab = "Percentage", main
> = filename, sub = subtitle)
> 
> Thank you!
> Antje
> 
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.

Petr Pikal
[EMAIL PROTECTED]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to