Hi,
as a bloody R beginner I failed to solve the probably simple problem
to create a barplot of the following data read from a file
Year A BC
2000 4 30
2001 2 13
2002 1 25
The Barplot should look like
5 |
On Fri, 25 Jul 2008, Nutter, Benjamin wrote:
data <- data.frame(Year=c(2000,2001,2002),
A=c(4,2,1),
B=c(3,1,2),
C=c(0,3,5))
data.mat <- as.matrix(data)[,2:4]
rownames(data.mat) <- data$Year
data.mat <- t(data.mat)
barplot(data.mat,be
On Fri, 25 Jul 2008, Jim Lemon wrote:
library(plotrix)
Well, if I try this in the example of the previous poster I get
nicely rendered fonts - which is the only difference I noticed.
# barp groups data in columns, not rows, so transpose
barp(t(atdat[,2:4]),names.arg=atdat[,1],col=2:4)
Whil
lot(data.mat,beside=TRUE)
As I said this works great - but now I would like to use the table
heading as legend - and have no idea how to access the header (see below)
-Original Message-
On Behalf Of Andreas Tille
Sent: Friday, July 25, 2008 8:14 AM
To: r-help@r-project.org
Subject: [R] Ma
On Fri, 25 Jul 2008, Nutter, Benjamin wrote:
data <- data.frame(Year=c(2000,2001,2002),
After the great help here I have a final problem (bug in R??)
with the background color. I would like to put my final drawing
on a dark background and thus I would like to use brigt colors
for axes etc. T
On Sun, 27 Jul 2008, S Ellison wrote:
Looking at the legend() source the filled box line colour is hardcoded :
if (mfill) {
if (plot) {
fill <- rep(fill, length.out = n.leg)
rect2(left = xt, top = yt + ybox/2, dx = xbox, dy = ybox,
col = fill, densi
On Sun, 27 Jul 2008, S Ellison wrote:
Looking at the legend() source the filled box line colour is hardcoded :
if (mfill) {
if (plot) {
fill <- rep(fill, length.out = n.leg)
rect2(left = xt, top = yt + ybox/2, dx = xbox, dy = ybox,
col = fill, densi
On Mon, 28 Jul 2008, Nutter, Benjamin wrote:
Try sourcing in the 'new.legend' function below. It's the legend
function with a new argument called 'box.col'. The argument will change
the color of the box surrounding the legend. If I understand what it is
you are looking for, this should work.
HI,
I guess's a FAW, but I'm currently very busy preparing a talks at
DebConf and hope you might excuse that my quick search failed. SO please
what is the trick to get larger fonts for Graphs to make a good
slide for presentations?
Sorry for bothering you with this boring question
Andreas
Hi,
I have some scripts creating GNUplot graphs that I would like to
convert to R. It would be a great help if there would be a
reasonable converter that takes over plot commands and initial
settings and put these into R commands (I'm an R beginner and
thus this kind of Kickstart would be helpful
10 matches
Mail list logo