Skip to content
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

x must be numeric problem in d3heatmap shiny #83

Open
stephenireland23 opened this issue Dec 26, 2017 · 0 comments
Open

x must be numeric problem in d3heatmap shiny #83

stephenireland23 opened this issue Dec 26, 2017 · 0 comments

Comments

@stephenireland23
Copy link

when I try to produce a heatmap using the code below, in shiny an x must be numeric error appears. could anyone explain why this is based on the code below. thanks

d <-read.csv("dataset2.csv",header=TRUE,sep=",")
mat1<-as.matrix(d, nrow=10,ncol=20, byrow=TRUE,header=TRUE,sep=",")

server <- function(input, output, session) {
output$heatmap <- renderD3heatmap({
d3heatmap(
scale(mat1),
colors = input$palette,
dendrogram = if (input$cluster) "both" else "none"
)
})
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant