[R] Plot

Jim Lemon
Wed, 07 Oct 2009 10:28:29 -0000

On 10/07/2009 01:05 AM, Ashta wrote:
> Days<- matrix(c("Monday", "Tuesday",
"Wed", "Thu", "Fri", "Sat",
> "Sun"),7,1)
>
> Hum<-matrix(c(56,57,60,75,62,67,70),
>
> Temp<-matrix(c(76,77,81,95,82,77,83),
>
Hi Ashta,
Are you looking for something like this:

dht<-data.frame(

Days=c("Mon","Tue","Wed","Thu","Fri","Sat","Sun"),
  Hum=c(56,57,60,75,62,67,70),
  Temp=c(76,77,81,95,82,77,83))
plot(dht$Hum,main="Temperature x Humidity plot",
  xlab="Day of
week",ylab="Humidity",xaxt="n",type="n")
  text(1:7,dht$Hum,dht$Temp)
  axis(1,at=1:7,labels=dht$Days)

Jim