Results 1 to 1 of 1

Math Help - I need some help with graphing in R

  1. #1
    Newbie
    Joined
    Mar 2011
    Posts
    14

    I need some help with graphing in R

    Okay actually I need help again.

    I need to plot the PDF and then the historgram of the quantile function.

    The graph of the PDF looks fine.

    The historgram of the quanitle function is just one bar over one section and nothing elsewhere. It is attached.

    Here is my code:

    pdffunction<-function(x){
    2/(x^3)
    }
    plot(x,pdffunction(x),ylim=c(0,50),type='l')

    myquant<-function(y){
    1/sqrt(1-y)
    }
    hist(myquant(runif(100000)),prob=T)

    I would appreciate some help!
    Attached Thumbnails Attached Thumbnails I need some help with graphing in R-histogram.jpeg  
    Last edited by xamius; March 11th 2011 at 10:18 PM. Reason: updated
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. graphing
    Posted in the Algebra Forum
    Replies: 6
    Last Post: May 19th 2011, 05:43 AM
  2. Graphing
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: May 23rd 2009, 05:31 PM
  3. graphing of sin and cos
    Posted in the Pre-Calculus Forum
    Replies: 4
    Last Post: October 28th 2008, 09:50 AM
  4. Graphing
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: January 16th 2008, 11:18 AM
  5. help with graphing
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: December 9th 2007, 09:23 AM

Search Tags


/mathhelpforum @mathhelpforum