Giter VIP home page Giter VIP logo

Comments (2)

dphansti avatar dphansti commented on September 16, 2024

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.

DanitzaS avatar DanitzaS commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.