Category "r"

R Shiny slider and plot are not populating on Linux RedHat. Any idea what's going on?

I'm trying to host a shiny app on a Linux RedHat server. The app works perfect when running locally. However, neither the slider or histogram is showing while o

How are you handling theme updates across multiple Shiny apps?

I have a general shiny question, rather than a specific call to help with code. I've just finished creating a branded shiny template using a mix of fresh and so

How to automatically make an axis with a gradation from 1 to max(n) when using facet_wrap ggplot2

I have a data.frame(tt) with 3 columns: nazvReki - grouping variable (18 values); rang - axis X (443 entries from 1 to 70. It takes values from 1 to 70, but for

Plot with circlize

I work with library circlize and I made plot. Below you can see code library(circlize) random_values<-c(500:100) random_sample<-sample(random_values,15)

Solving multiple equations using R's caracas package

I have multiple equations that I want to solve using caracas. I define my equations using sympy$Eq, then try to solve the equations using sympy$solve. But this

How can I see my full PCA data on the ordination map? and how can I change geom point colors of my data in R?

I am using a package called Vegan to calculate the PCA of my environmental samples and then plot my PCA values on the ordination space in R, I am using the data

Transform dataset into sequence set in R

I am an absolute beginner with R, so I'm sorry in advance for this probably simple question... I have an excel dataset that looks like this: Now, I need to tra

Convert a string entry in a variable into multiple variables R

I have a string variable type in my data frame that has a long string (its a JSON response) with both the names of the columns I want and the values following i

converting a column from character to rdate format. But with some values already in Rdate format

This column is from a dataframe called bdata. How do I convert this column smoothly into an rdate format when some of the variables here are already in rdate f

How to use estimate in forestplot package?

I'm trying to use the forestplot package to include estimate (beta) values. I can do it just fine if I were to use means instead of estimates using the code bel

How to use estimate in forestplot package?

I'm trying to use the forestplot package to include estimate (beta) values. I can do it just fine if I were to use means instead of estimates using the code bel

Error in Choropleth map in R , the data extract as a list (from each column)

I would like to make an interactive map in R, but somehow it turns out error, so here is my code. indo_sp %>% leaflet() %>% addProviderTiles(provide

How do I filter() over a dataset with map_dfr() more efficiently?

I have a list of word pairs: library(tidyverse) word_pairs <- structure(list(V1 = c("cup", "cup", "cup"), V2 = c("kilo", "slice","bacon")), row.names = c(NA

Change df columns from lists to vectors

I've been using R for a while, but lists perplex me. For some reason in some cases my function outputs a data frame of lists: str() returns something like:

Dynamic R objects using apply functions

I've got a long R code now and I'm trying to make it more readable. Below is a small chunk from my code - U2OverlayG1 <- GrowthorDiff(U2Overlay, Metadata, 1)

Show adjacent members in a list

I want to inspect adjacent elements in a list based on a match. For example, in a list of randomly ordered letters, I want to know what the neighboring letters

Error in new.session() : Could not establish session after 5 attempts

I've been facing in R the error message for days using getSymbols of the quantmod package: Error in new.session() : Could not establish session after 5 attempts

Can someone help me with the purrr: map function

I have a function "compute_gini" with 4 inputs. compute_gini(df, var, split, minsplit) I want it to run let's say 200 times but each time it runs, the input va

How do i fix error: data.frame: replacement has 148 rows, data has 1 (shiny and R)

I'm new to R and I'm trying to make my chart interactive using shiny and leaflet in R. however I can't seem to run my map_data() under reactive ({ code }) becau

How to change 1.3445 to 13445, 2.4444 to 24444 , and keep 1.20 not change

How to change 1.3445 to 13445, 2.4444 to 24444 , and keep 1.20 not change. Thanks! md <- data.frame(value=c('1.3445','1.20','2.4444'))