yonicd / shinyHeatmaply

https://yonicd.github.io/shinyHeatmaply/
47 stars 11 forks source link

Add HM parameters in the exported HTML #13

Closed talgalili closed 7 years ago

talgalili commented 7 years ago

Before the credit, it should mention which parameters were used for creating the heatmap (transformation, distance and clustering methods for each dendrogram, number of clusters, color range, etc)

yonicd commented 7 years ago

can you write the specific arguments you think are relevant

heatmaply(data.in,
            main = input$main,xlab = input$xlab,ylab = input$ylab,
            row_text_angle = input$row_text_angle,
            column_text_angle = input$column_text_angle,
            dendrogram = input$dendrogram,
            branches_lwd = input$branches_lwd,
            seriate = input$seriation,
            colors=eval(parse(text=paste0(input$pal,'(',input$ncol,')'))),
            distfun_row =  distfun_row,
            hclustfun_row = hclustfun_row,
            distfun_col = distfun_col,
            hclustfun_col = hclustfun_col,
            k_col = input$c, 
            k_row = input$r,
            limits = ColLimits) %>% 
    layout(margin = list(l = input$l, b = input$b))

})
yonicd commented 7 years ago

table created. problem putting it in the document

currently its not in the output.

yonicd commented 7 years ago

running htmlwidgets:::pandoc_self_contained_html causes the table elements to be wrapped in a <pre>

yonicd commented 7 years ago

done