Used the following Python code for a SHAP summary_plot: explainer = shap.TreeExplainer(model2) shap_values = explainer.shap_values(X_sampled) shap.summary_plot
StackExchange. I'm trying to build a phylogenetic tree for >100 individuals, using R. However, while tutorials for packages like APE and ggtree readily show
How to clip SHP (road map) based on 4 lines (roads)? I have OSM street grid from http://download.geofabrik.de/ and I want to clip it only to selected city centr
I want to get a Mahalanobis difference for each set of two scores, after being grouped by another variable. In this case, it would be a Mahalanobis difference f
I have faced with working EnrichR, is there any solution to solve it? install.packages("enrichR") library(enrichR) dbs <- listEnrichrDbs() `EnrichR websit
I am trying to get the pixel-variance of each image from my data folder and delete them when it's lower than 800. I have worked with deleting rows or columns in
First time posting here, normally I am able to find an answer to my questions by searching but not this time... I have a table T1 with 2 sets of coordinates (st
When using observe event and update var selection it resets every time to top in drop down list I have a very large data set, when one unit is selected it fi
Probably a simple problem and you can help me quickly. I have a vector with all the terms contained in a list of keywords. Now I want to join each term with all
I can not see the 3d figure when using r function persp3d, like using this demo code, it does not appear andy 3d graph, is it because the version of R? # (1) Th
I am trying to create multiplot that contains a map (using geom_sf) and a graph next to each other. I tried to use GGpubr::ggarrange and cowplot::plot_grid for
I would like to simulate 100 random numbers from N(0,1) in such a manner that the i-th number generated is always greater than the (i-1)-th number. I've tried u
I have a dataset with multiple individuals and two variables from different points of time, for example: Company Employees at t=1 (before a specific event) Rev
Consider I have two Excel files in my subdirectionary: .../Myfolder/File1.xlsx .../Myfolder/File2.xlsx I know that I can read them into R as a list using the f
I have a statistical question on which I am stuck: Imagine you have 5 corn fields. You know the number of corn plant there is in each fields. You know want to c
I am trying to format an ANOVA style output for my paper using kableExtra. I want to make it automatic to avoid mistakes. I need to glue together several ANOVA
I am pretty new to survey data and gtsumarry package. I'm trying to create a stratified table from the survey data using the following code, and I get the error
I am trying to run the textEmbed function in R. Set up needed: require(quanteda) require(quanteda.textstats) require(udpipe) require(reticulate) #udpi
I have a dataframe and I would like to maintain information. My data frame is like: a <- c("a","b", "c", "d") b <- c("e","f", "g", "h") c <- c(1, 2, 1,
I would like to display some R code on my shiny app. Therefore, I used verbatimTextOutput but I can't find a way to break lines and to display paragraphs of cod