Changing the Scale of GViz Data track
1
0
Entering edit mode
@kurinji-pandiyan-4933
Last seen 10.2 years ago
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]]
Gviz Gviz • 3.8k views
ADD COMMENT
0
Entering edit mode
@steffen-durinck-4465
Last seen 10.2 years ago
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 COMMENT

Login before adding your answer.

Traffic: 669 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6