Problems with the function "insert_left"
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- r
- Ambito
- data-visualization
Direzione di ricerca
Start by reproducing the supplied heatmap and dendrogram example with aplot 0.2.0, then compare the same call with 0.1.8 and 0.1.9. Trace the insert_left entry point and the limit handling that produces the zero_range error; done means the example combines successfully without the coercion warning or missing-value error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When using the aplot package (version 0.2.0), the following error message appears when using the function "insert_left":
Error in if (zero_range(as.numeric(limits))) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In zero_range(as.numeric(limits)) : NAs introduced by coercion
We have a matrix to plot heatmap like this:
And then we use the following code to generate the cluster tree:
dd <- dist(plotdata1, method = "euclidean")
hc <- hclust(dd, method = "ward.D2")
library(ggdendro)
pa=ggdendrogram(hc,theme_dendro = F)+
coord_flip()+
scale_y_reverse()+
theme_void()
Then the heatmap plot was plotted using the following code:
plotdata1 %>% ggplot(aes(x=condition,y=celltype))+
geom_tile(aes(fill = value),color = tile_color)+
scale_y_discrete(expand = c(0,0),position = "right")+
scale_x_discrete(expand = c(0,0))+
theme_bw()+
theme(
panel.grid = element_blank(),
axis.title = element_blank(),
axis.ticks.length = unit(0.15,"cm"),
axis.text.y.right = element_text(size = 12,colour = "black"),
axis.text.x.bottom = element_text(size = 12,colour = "black",angle = 0,hjust = 0.5)
)
And if I want to combine the two plot, Error was occured:
>insert_left(pb,pa,width = relative_width)
Error in if (zero_range(as.numeric(limits))) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In zero_range(as.numeric(limits)) : NAs introduced by coercion
However, aplot (version 0.1.8) works fine whereas vesion 0.1.9 and 0.2.0 can't. So maybe it's necessary to solve this problem in the next vesion.
- Lingua principale
- R
- Stelle
- 131
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di YuLab-SMU/aplot
-
insert_left can not workAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Issue with label alignmentAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di YuLab-SMU/aplot
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
add bootmlmAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
extendr/extendr.github.io#134 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nmfs-ost/stockplotr#416 ·
I maintainer di solito rispondono entro 1 giorno
-
ragnar_find_links() does not include the root URL in its resultsForse già presa @andrie l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100