Re: [R] kernel density plot

2011-04-03 Thread Muzna Alvi
- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Muzna Alv

[R] kernel density plot

2011-04-03 Thread Muzna Alvi
I am using the following commands for plotting kernel density for three kinds of crops density(s22$Net_income_Total.1, bw="nrd0",adjust=1, kernel=c("gaussian"))->t plot(t, xlim=c(-3,4), main="Net Income Distribution", axes=F, ylim=c(0,0.00035). xlab="Value in Rupees") par(new=T) density(s3

Re: [R] Reshape, melt and cast query

2011-03-10 Thread Muzna Alvi
gt; column filled with identical values "crop_group". > > You really should read the posting guide and provide a reproducible > example. > > I suspect that you would benefit from learning how to use the plyr library. > -- > Sent from my Android phone with K-9 Mail. P

Re: [R] Reshape, melt and cast query

2011-03-10 Thread Muzna Alvi
; see ?"[" and ?order > > HTH, > Ista > > On Thu, Mar 10, 2011 at 2:20 PM, Muzna Alvi wrote: > > I have a dataset that is based on crop output for a single crop > > *sugarcane*...but > > each observation is further subdivided into 3 kinds of sugarcane > >

[R] Reshape, melt and cast query

2011-03-10 Thread Muzna Alvi
I have a dataset that is based on crop output for a single crop *sugarcane*...but each observation is further subdivided into 3 kinds of sugarcane i have read the file and have also used melt it to sort it on the basis of *crop group* using melt(sugarcane, m=c("Crop_group")) -> canefile this is

[R] plotting, graph, everything

2011-02-28 Thread Muzna Alvi
I have this assignment to do and after ten hours of constant trying my eyes ache and i give up.. all i'm able to get is this plot please help me these are the commands i have used till now read.table(file.choose(), sep=";", header=T) read.table(file.choose(), sep=";", header=T)->areas melt(area

[R] changing origin and plotting complex graphs

2011-02-28 Thread Muzna Alvi
I have data on area under cultivation of a crops for 17 states..I need a scatter plot to be made for the following assignment Read the data file /Data/ep602/areas.csv, and make a scatter plot that displays area under rice in 1960s on the x axis, and percentage change in area under rice between 196

[R] r help for growth rate

2011-02-28 Thread Muzna Alvi
I'm havinf a problem with a simple file i have the following data State 1960 1970 1980 1990 1 All India 35988.70 37346.00 39707.30 42321.00 2Andhra Pradesh 3431.03 3163.27 3687.23 3695.63 3 Assam 1902.93 2001.60 2278.47 2525.33 4 Bihar 5277.07 513