Yes Mac, text function did it. Thanks All for your help.
text(dfPlot$Date, dfPlot$RECLTD,dfPlot$Labels, col=642)
On Tue, Sep 17, 2013 at 12:00 AM, MacQueen, Don wrote:
> Possibly the text() function.
>
> --
> Don MacQueen
>
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Liv
Possibly the text() function.
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 9/15/13 9:43 AM, "Ankur Seth" wrote:
>I want to put labels a,b,c,d on the data points
>
>x<-data.frame(c(1,2,3,4),c(1,4,9,16),c("a","b","c","d"),
text(x=x, y=y, labels= lab, pos=1, offset=1, cex=0.8)})
A.K.
- Original Message -
From: Ankur Seth
To: jim holtman
Cc: r-help
Sent: Sunday, September 15, 2013 12:43 PM
Subject: Re: [R] Data labels in R
I want to put labels a,b,c,d on the data points
x<-data.frame(c(1,2,3,4),c(1,4,9
I want to put labels a,b,c,d on the data points
x<-data.frame(c(1,2,3,4),c(1,4,9,16),c("a","b","c","d"),
as.Date(c("01-10-2013", "02-10-2013","03-10-2013","04-10-2013"),
"%d-%m-%Y"))
colnames(x)<-c("x", "sq", "lables","dates")
y<-subset(x, select=c(dates,x,sq))
y<-read.zoo(y)
plot(y, plot.type="si
Read the help file on 'plot' and look at some of the examples to see
how to place labels in various places on a plot. This is not
difficult if you have read any of the documentation.
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not h
I need to put labels in plot in R. Can someone please help? The labels are
in the excel file and loaded into "lables"
library(xlsx)
library(zoo)
fPTAnalysis<-"Input.xls"
data<-read.xlsx(fPTAnalysis,9)
lables<-subset(data, select=c(Labels))
data<-subset(data, select=c(Date,col1, col2 ))
data<-rea
6 matches
Mail list logo