-
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
Error in train(..., self = self) : unused argument (list(NULL, "column", "row", "text")) #305
Comments
Hi, Did you resolved this problem? I'm going through the same thing. |
Can you post a stack trace/traceback? |
I'm using heatmaply version 1.5.0 My sessionInfo() Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached):
|
That is not a stack trace or traceback. Please post the output of |
traceback()
11: guides$train(scales, theme$legend.direction, plot$labels)
10: get_gdefs_ggproto(npscales$scales, theme, plot, layers)
9: gg2list(p, width = width, height = height, tooltip = tooltip,
dynamicTicks = dynamicTicks, layerData = layerData, originalData = originalData,
source = source, ...)
8: ggplotly.ggplot(p, dynamicTicks = dynamicTicks, tooltip = "text",
height = height, width = width, source = plotly_source)
7: ggplotly(p, dynamicTicks = dynamicTicks, tooltip = "text", height = height,
width = width, source = plotly_source)
6: layout(., showlegend = FALSE)
5: ggplotly(p, dynamicTicks = dynamicTicks, tooltip = "text", height = height,
width = width, source = plotly_source) %>% layout(showlegend = FALSE)
4: heatmaply.heatmapr(hm, colors = colors, limits = limits, scale_fill_gradient_fun = scale_fill_gradient_fun,
grid_color = grid_color, grid_gap = grid_gap, row_text_angle = row_text_angle,
column_text_angle = column_text_angle, subplot_margin = subplot_margin,
row_dend_left = row_dend_left, xlab = xlab, ylab = ylab,
main = main, titleX = titleX, titleY = titleY, hide_colorbar = hide_colorbar,
key.title = key.title, return_ppxpy = return_ppxpy, margins = margins,
row_side_palette = row_side_palette, col_side_palette = col_side_palette,
heatmap_layers = heatmap_layers, side_color_layers = side_color_layers,
dendrogram_layers = dendrogram_layers, ColSideColors = ColSideColors,
RowSideColors = RowSideColors, branches_lwd = branches_lwd,
label_names = label_names, plot_method = plot_method, draw_cellnote = draw_cellnote,
cellnote_textposition = cellnote_textposition, cellnote_size = cellnote_size,
cellnote_color = cellnote_color, fontsize_row = fontsize_row,
fontsize_col = fontsize_col, subplot_widths = subplot_widths,
subplot_heights = subplot_heights, colorbar_len = colorbar_len,
colorbar_thickness = colorbar_thickness, colorbar_xanchor = colorbar_xanchor,
colorbar_yanchor = colorbar_yanchor, colorbar_xpos = colorbar_xpos,
colorbar_ypos = colorbar_ypos, showticklabels = showticklabels,
dynamicTicks = dynamicTicks, grid_size = grid_size, node_type = node_type,
point_size_name = point_size_name, label_format_fun = label_format_fun,
...
3: heatmaply(hm, colors = colors, limits = limits, scale_fill_gradient_fun = scale_fill_gradient_fun,
grid_color = grid_color, grid_gap = grid_gap, row_text_angle = row_text_angle,
column_text_angle = column_text_angle, subplot_margin = subplot_margin,
row_dend_left = row_dend_left, xlab = xlab, ylab = ylab,
main = main, titleX = titleX, titleY = titleY, hide_colorbar = hide_colorbar,
key.title = key.title, return_ppxpy = return_ppxpy, margins = margins,
row_side_palette = row_side_palette, col_side_palette = col_side_palette,
heatmap_layers = heatmap_layers, side_color_layers = side_color_layers,
dendrogram_layers = dendrogram_layers, ColSideColors = ColSideColors,
RowSideColors = RowSideColors, branches_lwd = branches_lwd,
label_names = label_names, plot_method = plot_method, draw_cellnote = draw_cellnote,
cellnote_textposition = cellnote_textposition, cellnote_size = cellnote_size,
cellnote_color = cellnote_color, fontsize_row = fontsize_row,
fontsize_col = fontsize_col, subplot_widths = subplot_widths,
subplot_heights = subplot_heights, colorbar_len = colorbar_len,
colorbar_thickness = colorbar_thickness, colorbar_xanchor = colorbar_xanchor,
colorbar_yanchor = colorbar_yanchor, colorbar_xpos = colorbar_xpos,
colorbar_ypos = colorbar_ypos, showticklabels = showticklabels,
dynamicTicks = dynamicTicks, grid_size = grid_size, node_type = node_type,
point_size_name = point_size_name, label_format_fun = label_format_fun,
...
2: heatmaply.default(mtcars, k_row = 3, k_col = 2)
1: heatmaply(mtcars, k_row = 3, k_col = 2) rlang::last_error() |
Are you sure that's the full output of traceback? It doesn't seem to match the previous error you posted |
I restart the Rstudio. It is the full output of traceback(). |
Can't reproduce the error on my end, only suggestion I have for now is to update plotly, I'm running 4.10.4 to your 4.10.2 |
I reinstalled plotly. Now it's running successfully. Thank you! |
Great cheers, sorry for the delay looking at this, just missed the first notification |
Describe the bug
I'm getting an error when running the heatmaply function on the toy example, unless I use the plot_method = "plotly"
To Reproduce
heatmaply(mtcars) # produces the error (see title of this bug report)
heatmaply(mtcars, plot_method = "plotly") # works fine
Additional context
Here is my session.Info:
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS/LAPACK: /usr/lib64/libopenblasp-r0.3.3.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] grid parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] heatmaply_1.5.0 viridis_0.6.4 viridisLite_0.4.2 plotly_4.10.2 rsvg_2.5.0 ggvenn_0.1.10
[7] ggforce_0.4.1 xml2_1.3.6 tidygraph_1.2.3 ggraph_2.1.0 corrplot_0.92 RColorBrewer_1.1-3
[13] clusterProfiler_4.8.3 ggrepel_0.9.5 readxl_1.4.3 doParallel_1.0.17 iterators_1.0.14 foreach_1.5.2
[19] DescTools_0.99.50 survival_3.5-7 labelled_2.12.0 Epi_2.47.1 haven_2.5.4 janitor_2.2.0
[25] SomaDataIO_6.0.0 lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2
[31] readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 ggplot2_3.5.0 tidyverse_2.0.0.9000
loaded via a namespace (and not attached):
[1] shadowtext_0.1.2 fastmatch_1.1-4 systemfonts_1.0.4 plyr_1.8.8 igraph_1.5.1
[6] lazyeval_0.2.2 splines_4.1.2 crosstalk_1.2.0 BiocParallel_1.34.2 GenomeInfoDb_1.36.3
[11] digest_0.6.34 ca_0.71.1 htmltools_0.5.7 yulab.utils_0.1.0 GOSemSim_2.26.1
[16] GO.db_3.17.0 fansi_1.0.6 magrittr_2.0.3 memoise_2.0.1 tzdb_0.4.0
[21] etm_1.1.1 Biostrings_2.68.1 graphlayouts_1.0.1 vroom_1.6.5 svglite_2.1.1
[26] timechange_0.3.0 enrichplot_1.20.3 colorspace_2.1-0 blob_1.2.4 textshaping_0.3.7
[31] crayon_1.5.2 RCurl_1.98-1.12 jsonlite_1.8.8 scatterpie_0.2.1 Exact_3.2
[36] zoo_1.8-12 ape_5.7-1 glue_1.7.0 polyclip_1.10-4 registry_0.5-1
[41] gtable_0.3.4 zlibbioc_1.46.0 XVector_0.40.0 webshot_0.5.5 BiocGenerics_0.46.0
[46] scales_1.3.0 DOSE_3.26.1 mvtnorm_1.2-3 DBI_1.2.2 Rcpp_1.0.11
[51] cmprsk_2.2-11 gridGraphics_0.5-1 tidytree_0.4.5 bit_4.0.5 proxy_0.4-27
[56] stats4_4.1.2 htmlwidgets_1.6.4 httr_1.4.7 fgsea_1.26.0 ellipsis_0.3.2
[61] pkgconfig_2.0.3 farver_2.1.1 utf8_1.2.4 labeling_0.4.3 ggplotify_0.1.2
[66] tidyselect_1.2.0 rlang_1.1.3 reshape2_1.4.4 AnnotationDbi_1.62.2 munsell_0.5.0
[71] cellranger_1.1.0 tools_4.1.2 cachem_1.0.8 downloader_0.4 cli_3.6.2
[76] generics_0.1.3 RSQLite_2.3.5 gson_0.1.0 fastmap_1.1.1 yaml_2.3.8
[81] ragg_1.2.7 ggtree_3.8.2 bit64_4.0.5 fs_1.6.3 dendextend_1.17.1
[86] KEGGREST_1.40.0 rootSolve_1.8.2.4 nlme_3.1-164 aplot_0.2.1 compiler_4.1.2
[91] rstudioapi_0.15.0 png_0.1-8 e1071_1.7-13 treeio_1.24.3 tweenr_2.0.2
[96] stringi_1.8.3 lattice_0.20-45 Matrix_1.4-0 vctrs_0.6.5 pillar_1.9.0
[101] lifecycle_1.0.3 data.table_1.14.8 cowplot_1.1.1 bitops_1.0-7 seriation_1.5.4
[106] lmom_3.0 patchwork_1.1.3 qvalue_2.32.0 R6_2.5.1 TSP_1.2-4
[111] gridExtra_2.3 IRanges_2.34.1 gld_2.6.6 codetools_0.2-19 assertthat_0.2.1
[116] boot_1.3-30 MASS_7.3-60.0.1 withr_2.5.1 S4Vectors_0.38.2 GenomeInfoDbData_1.2.10
[121] mgcv_1.9-1 expm_0.999-7 hms_1.1.3 ggfun_0.1.3 HDO.db_0.99.1
[126] class_7.3-22 snakecase_0.11.1 numDeriv_2016.8-1.1 Biobase_2.60.0
The text was updated successfully, but these errors were encountered: