Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2247

Please supplement your question with a minimal reproducible example. Use dput() for data and specify all non-base packages with library calls. For statistical questions please use http://stats.stackexchange.com.

2 votes
2 answers
201 views

Declaring an array of strings and integers

Is it possible to write this loop without declaring an array in R? …
user98059's user avatar
  • 347
5 votes
2 answers
2k views

Spearman correlation for large dataset

I have two datasets (DataA and DataB) and I want to find the Spearman correlation between genes and also pull out the gene names (stored in first column of dataset) in R. …
user98059's user avatar
  • 347
2 votes
1 answer
3k views

Performing t.test to obtain p.values for each gene

The t.test function in R returns single p.value and not gene-wise (I don't want to do t-test in Excel). Which package/function should I use to do this in R? …
user98059's user avatar
  • 347
0 votes
1 answer
480 views

Get gene names corresponding to CPG probes

Is there any package or function in R through which I can get the gene names corresponding to these probes? I was able to get the gene I.Ds using getMappedEntrezIDs. …
user98059's user avatar
  • 347
0 votes
1 answer
439 views

Customizing colors in geom_arc_bar (ggforce)

dplyr) df <- fread("data_frame_pie_plot.csv", header = TRUE, data.table = FALSE, stringsAsFactors = FALSE) req_data <- apply(df, 1, function(x){ geom_arc_bar(aes(x0 = x0, y0 = y0, r0 = 0, r … =====================================## # Code 2 my_colors_1 <- c("red", "white") my_colors_2 <- c("blue", "white") req_data <- apply(df, 1, function(x){ geom_arc_bar(aes(x0 = x0, y0 = y0, r0 = 0, r
user98059's user avatar
  • 347
1 vote
1 answer
774 views

Heatmap annotation with value and colour gradient

The code that I have tried library(ComplexHeatmap) library(circlize) set.seed(123) mat = matrix(rnorm(25), 5) rownames(mat) = paste0("R", 1:5) colnames(mat) = paste0("C", 1:5) col_fun = colorRamp2 …
user98059's user avatar
  • 347
4 votes
1 answer
2k views

How to enlarge a section of y-axis?

Which function/package should I use do it in R? …
user98059's user avatar
  • 347
3 votes
1 answer
2k views

Grouping x-axis in scatter plot

I am trying to plot one scatter plot for each group, where each group has continous values in x-axis. Reference Data Gives continuous x-axis but all groups are combined. ggplot(data_for_plotting, aes …
user98059's user avatar
  • 347