Petr,
Thank you very much for help.

Graph A,

>Are the distributions restricted to the shown intervals?
 Not necessarily.

Based on your suggested R-code,

  x <- seq(0, 3, length=1001)
 y1 <- dnorm(x, mean=0.5, sd=1)
 y2 <- dnorm(x, mean=2.5, sd=1)
 plot(x, (y1+1.05*y2)/2.05, type="l")

The following graph was generated.
What I want is,

1- let the plot star from 0.2 in Y-axis rather than the minimum value, Then
goes up to 0.23 then stay flat. A slow  drop when it reaches to 0.25 on
X-axis. Finally, when it reaches at the coordinate of  (0.21,0.3) stop
instead of going down..




Thanks



On Tue, Jan 31, 2012 at 11:09 AM, Petr Savicky <savicky@cs.cas.cz> wrote:

> On Tue, Jan 31, 2012 at 10:03:39AM -0500, Val wrote:
> > Hi All,
> >
> > I want generate data using R that follows the shape of graphs (A and B)
> in
> > the attached file.  Can anybody suggest me what function fits for each
> > graph?
>
> Hi.
>
> The graphs leave open several questions. Are the distributions
> restricted to the shown intervals? How exactly should the
> densities be close to the presented curves? Is it important
> that the distribution of A is skewed? In other words, is it
> important that the flat part of the high densities of A is
> slightly increasing? Is B bimodal?
>
> Using mixtures of two gaussians, it is possible to achieve
> the following densities.
>
>  x <- seq(0, 3, length=1001)
>  y1 <- dnorm(x, mean=0.5, sd=1)
>  y2 <- dnorm(x, mean=2.5, sd=1)
>  plot(x, (y1+1.05*y2)/2.05, type="l")
>
>  x <- seq(0, 3, length=1001)
>  y1 <- dnorm(x, mean=0.5, sd=0.95)
>  y2 <- dnorm(x, mean=2.5, sd=0.95)
>  plot(x, (y1+y2)/2, type="l")
>
> Are these curves satisfactory?
>
> The generation then should be done differently, using
> rnorm().
>
> Petr Savicky.
>
> ______________________________________________
> 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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>


On Tue, Jan 31, 2012 at 11:09 AM, Petr Savicky <savicky@cs.cas.cz> wrote:

> On Tue, Jan 31, 2012 at 10:03:39AM -0500, Val wrote:
> > Hi All,
> >
> > I want generate data using R that follows the shape of graphs (A and B)
> in
> > the attached file.  Can anybody suggest me what function fits for each
> > graph?
>
> Hi.
>
> The graphs leave open several questions. Are the distributions
> restricted to the shown intervals? How exactly should the
> densities be close to the presented curves? Is it important
> that the distribution of A is skewed? In other words, is it
> important that the flat part of the high densities of A is
> slightly increasing? Is B bimodal?
>
> Using mixtures of two gaussians, it is possible to achieve
> the following densities.
>
>  x <- seq(0, 3, length=1001)
>  y1 <- dnorm(x, mean=0.5, sd=1)
>  y2 <- dnorm(x, mean=2.5, sd=1)
>  plot(x, (y1+1.05*y2)/2.05, type="l")
>
>  x <- seq(0, 3, length=1001)
>  y1 <- dnorm(x, mean=0.5, sd=0.95)
>  y2 <- dnorm(x, mean=2.5, sd=0.95)
>  plot(x, (y1+y2)/2, type="l")
>
> Are these curves satisfactory?
>
> The generation then should be done differently, using
> rnorm().
>
> Petr Savicky.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]

