Skip to content
Prev 360895 / 398506 Next

What is the easiest way to turn a dataframe into a barplot?

If you want to stay with vertical bars, the barp() function in package plotrix lets you stagger or rotate the labels:
+      "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", 
+      "Fourteen", "Fifteen")
# Note that if you drag the plot window to be wider, the labels will eventually appear
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of yoursurrogategod at gmail.com
Sent: Thursday, May 12, 2016 1:14 PM
To: William Dunlap
Cc: r-help at r-project.org
Subject: Re: [R] What is the easiest way to turn a dataframe into a barplot?

Ok, the horizontal names work here.  Thanks.
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.