Comments (2)
I am sorry but I am not sure I understand your first question exactly. Could you explain in more detail what you are trying to achieve? Example code is always helpful.
Regarding question 2, you should be able to make plots with only two data points. Maybe you could post the exact code and data you are trying to plot.
from sushi.
Thank you for your quick response.
I will explain to you better, in others libraries to do graphs on R exists a function called "facet" , it allow to make multi panel plots with differentes properties each one but relationship among.
For example in ggplot2, can to do subdivisions like show this page https://plot.ly/ggplot2/facet/ , is the same graph, but showing differents properties by panel, and i would want to do the same in plotBed, but I don't know if is possible.
With respect to second question, I am using the next code, in particular works well, but with a little bit data shows errors like the next. When I using more data I don't have any problems.
My data is this (bed archive):
chrom | start | end | name | score | strand
chr5 | 128410262 | 142205103 | hispanic or latino | 100 | 1
chr5 | 137907761 | 143020018 | hispanic or latino | 200 | 1
The Error is this:
" Error in cut.default(vec, c(-Inf, breaks, Inf), labels = cols) :
'breaks' are not unique "
Code:
`plotBed(beddata = dato,chrom = chrom,chromstart = chromstart,
chromend = chromend,colorby = dato$strand,
colorbycol =mis.colores , row = "auto", wiggle=0.2 )
title(main= paste('TCGA-',cancer,sep=""))
zoomsregion(zoomregion1,col=NA,zoomborder="black",lty=1,lwd=2,extend=c(0.02,0.04),wideextend=80,offsets=c(1,0),highlight=TRUE)
labelgenome(chrom,chromstart,chromend,n=5, scale="Kb")
legend("topleft",inset=0,legend=c(unique(long)),fill= mis.colores(length(long)),
border=mis.colores(length(long)),text.font=2,cex=0.75, title = "CNV")`
I hope this time I have explained it better.
Thank you for your help and time.
Danitza
from sushi.
Related Issues (20)
- Make the figure a little prettier
- Set the default for the functions to what i use in the figure so that the commands look shorter
- Write the vignette HOT 1
- Write the paper
- plotGenes issue HOT 1
- plot the gene density on two or more chromosome HOT 2
- Refseq genes in plotBedpe HOT 1
- plotGenes error HOT 1
- pgb=plotGenes arrows HOT 4
- Locking Y axis with plotBed HOT 2
- Missing genes on exome level zoom HOT 1
- Error with plotBedgraph
- How to plot external bed graph files in Sushi?
- plotbedpe with only one breakpoint inside the defined range HOT 6
- plotGenes not work? HOT 1
- Blank bedgraph plot! HOT 2
- Changing color palette in plotBedpe
- PlotGenes biomart call maybe needs update?
- plotBed hangs on large bedfile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sushi.