Search
Question: Changing the Scale of GViz Data track
0
gravatar for Kurinji Pandiyan
5.5 years ago by
Kurinji Pandiyan30 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]]
ADD COMMENTlink modified 5.5 years ago by Steffen Durinck530 • written 5.5 years ago by Kurinji Pandiyan30
0
gravatar for Steffen Durinck
5.5 years ago by
Steffen Durinck530 wrote:
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]]
ADD COMMENTlink written 5.5 years ago by Steffen Durinck530
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 160 users visited in the last hour