Re: [R] subject: horizontal text in barplot

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Mon, 02 Jun 2008 10:05:48 -0300

Try this:

bp <- barplot(jib, horiz=TRUE, yaxt = 'n') axis(2, at = bp, labels = colnames(jib), tick = FALSE, las = 2)

On Mon, Jun 2, 2008 at 10:00 AM, dat <naor_at_gmx.at> wrote:

>
> I have a problem with the ylabs in barplot. When I draw the bars horizontal
> the text for the y axis is not drawn horizontal too.
> The text remains vertical. How can I change that. Thank's for your advice.
> There is an example below.
>
>
> ##Example
> plot.new()
> jib <- data.frame(c(1:15),c(11:25),c(15:1),c(25:11))
> colnames(jib) <- c("eins","zwei","drei","vier")
> rownames(jib) <- c("AT", "BE", "DK", "FI", "FR", "DE",
> "GR", "IE", "IT", "LU", "NL", "PT", "ES", "SE", "UK" )
> jib <- as.matrix(jib)
> jib <- t(jib)
> barplot(jib, horiz=TRUE)
> jib
> ## End Example
>
> ______________________________________________
> R-help_at_r-project.org 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]


______________________________________________ R-help_at_r-project.org 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.

Received on Mon 02 Jun 2008 - 13:12:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 02 Jun 2008 - 13:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive