[R] Density plot error

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Mon Sep 19 17:56:20 CEST 2016

You desperately need to read the Posting Guide mentioned at the bottom of every posting on this list. Avoid attachments (your code did not come through), keep sample data size minimal, don't reply to other topic messages (start a fresh email thread so your message doesn't get buried in other people's mailboxes.). Ideally you will provide sample data as part of your sample code using dput, but you may be having difficulty reading the data into memory in the first place so you might not be ready for that. Also [1] would probably be helpful to you. 

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Sent from my phone. Please excuse my brevity.

On September 19, 2016 5:15:38 AM PDT, najad zamirah zaki via R-help <r-help at r-project.org> wrote:
>I'm Najad, a student at the University of Glasgow. I really need help
>with a script of mine to plot density plot for my data. I kept on
>having an error saying need at least 2 points to select a bandwidth
>automaticallyI've tried to replace the NaN in my data to zero but still
>the same. I'm not good with R and don't understand the coding language
>so I need help on this. I've attached here the data and the script that
>I use. I use R version 3.1.1
>Thank you Warm regards,Najad Zaki
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list