What do you expect the 'x' values to be? Are you just looking for the
sequence 1:180 for plotting? 'y' is just a vector of length 180 with
values and has no 'x' associated with it.
On Mon, Aug 12, 2013 at 9:15 AM, Andrew Halford
<andrew.halford@gmail.com>wrote:
> Hi Listers,
>
> I have generated a random normal distribution using rnorm
>
> > y <- rnorm(180,116.7,5.4)
>
> How do I get a list of the x values that correspond to each y value that
> was generated. If I do a call to y, then I get the y-values but I also need
> the x values so I can generate a plot in another package I am using.
>
> Andy
>
>
>
>
> --
> Andrew Halford Ph.D
> Adjunct Research Scientist
> University of Guam & Curtin University
> Ph: +61 (0) 468 419 473
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.
[[alternative HTML version deleted]]