Hi Kurinji,

Try adding ylim = c(0,1) to the DataTrack call.

dTrack <- DataTrack(hct.mergegr, data =
t(as.data.frame(elementMetadata(hct.mergegr))), genome = "hg19", chromosome
= "chr17", name = "HCT116 Methylation", col = "red",ylim = c(0,1))

Steffen

On Thu, Jun 7, 2012 at 11:06 AM, Kurinji Pandiyan <
kurinji.pandiyan@gmail.com> wrote:

> Dear All,
>
> I would appreciate it if you would let me know how to change the scale of
> my data tracks when plotting on Gviz. My data ranges from 0-0.4 in values
> but I want to keep the scale as 0-1 for every data track to prevent skewing
> of representation. I tried playing with a few commands but was unable to
> achieve this.
>
> Here is my current data track:
>
> dTrack <- DataTrack(hct.mergegr, data =
> t(as.data.frame(elementMetadata(hct.mergegr))), genome = "hg19", chromosome
> = "chr17", name = "HCT116 Methylation", col = "red", from= 0, to = 1)
>
> the from and to does not alter the scale and my data track does not range
> the 0-1 that I would like it to.
>
> Is there some other command I can use here? Or does this range need to be
> specified while plotting and not while creating the data track?
>
> Thank you for the help,
> Kurinji
>
> Graduate Student
> Johns Hopkins University/University of Southern California
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

