-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heatmaply does not show plot #260
Comments
the only thing I could think of that changed recently is that I updated the makefile for the local compiler for a different package to gcc instead of clang. not sure whether this matters, but didn’t think it should since i was able to install the package succesfully |
I'm having the same issue. Please let me know if there is a fix. Thanks |
I've not got a mac to test this on; no issues on Ubuntu. Will investigate further if github actions shows similar errors, otherwise I suspect you're on your own. 2a75c62 Would probably help if you can identify the line of code that hangs by using debug. |
#install.packages("corrplot") library(tidyverse) getwd() #displays your working directory football <- read.csv("Desktop/football.csv", na="0") quarterbacks <- football %>% View(quarterbacks) quarterbacks_corr <- quarterbacks %>% head(quarterbacks_corr) #head(quarterbacks_corr) colSums(is.na(quarterbacks_corr)) quarterbacks_corr[is.na(quarterbacks_corr)]<-0 #changes na values to 0 quarterbacks_corr <- round(cor(quarterbacks_corr),2) #corrplot(quarterbacks_corr, type="lower") #corrplot(quarterbacks_corr, type="upper", method="number") mtcars<- cor(mtcars) heatmap(mtcars) library(heatmaply) heatmaply(mtcars) # <<<<<====CODE GETS STUCKS HERE. It just loads and loads, but does not complete itself. |
Any chance to make a reproducible example? (Say, with toy data?!)
…On Mon, May 17, 2021, 23:46 Jonathan H. ***@***.***> wrote:
#install.packages("corrplot")
library(tidyverse)
library(dplyr)
library(reshape)
library(matrixcalc)
library(ggplot2)
#library(corrplot) #used for plotting correlation
getwd() #displays your working directory
setwd("/2020football.csv")
football <- read.csv("Desktop/football.csv", na="0")
head(football)
quarterbacks <- football %>%
select(everything()) %>%
filter(FantPos=="QB")
View(quarterbacks)
str(quarterbacks)
quarterbacks_corr <- quarterbacks %>%
select_if(is.numeric) %>%
select(-X2.00.PM, -Y.R,-VBD)
head(quarterbacks_corr)
#head(quarterbacks_corr)
str(quarterbacks_corr)
summary(quarterbacks_corr)
colSums(is.na(quarterbacks_corr))
nrow(quarterbacks_corr) # 71 rows of players
quarterbacks_corr[is.na(quarterbacks_corr)]<-0 #changes na values to 0
nrow(quarterbacks_corr) #71
<#71> rows - number of rows
stays the same.
quarterbacks_corr <- round(cor(quarterbacks_corr),2)
#corrplot(quarterbacks_corr, type="lower")
#corrplot(quarterbacks_corr, type="upper", method="number")
mtcars<- cor(mtcars)
heatmap(mtcars)
library(heatmaply)
heatmaply(mtcars) # <<<<<====CODE GETS STUCKS HERE. It just loads and
loads, but does not complete itself.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#260 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHOJBR4XBZC3CMBJZKVIG3TOF6BFANCNFSM4Y646YJA>
.
|
Hi there, I'm using a mac and using the free version of R studio R version 3.6.3 install.packages('heatmaply') heatmaply(mtcars) |
I meant "which line of heatmaply hangs?" CI passes so I don't really have a path to dig in further |
It's this line of code below which hangs: heatmaply(mtcars) |
you could call you can then step through the function to identify which line hangs |
Hope this helps:
|
What's the output from
library(heatmaply)
sessionInfo()
?
…On Tue, May 18, 2021, 00:05 Jonathan H. ***@***.***> wrote:
Hope this helps:
debug(heatmaply)
heatmaply(mtcars)
debugging in: heatmaply(mtcars)
debug: {
UseMethod("heatmaply")
}
Browse[2]> {
- UseMethod("heatmaply")
- }
debug at #2 <#2>:
UseMethod("heatmaply")
Browse[3]> UseMethod("heatmaply")
Error in UseMethod("heatmaply") :
'UseMethod' used in an inappropriate fashion
Browse[3]>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#260 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHOJBVQ24FXF7QBVAEQ6X3TOGAKJANCNFSM4Y646YJA>
.
|
|
sessionInfo() Browse[2]> sessionInfo() Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I would like to use heatmaply to generate some plots, but plot does not show when I run the code (see image)- the command just indefinitely pends and the only way to kill the command is to force quit Rstudio on my mac. I tried reinstalling the package, as well as reinstalling R, Rstudio, and all other packages to no avail. I am not getting an error message. What could be the problem and any tips to resolve this? Thanks!!
The text was updated successfully, but these errors were encountered: