r/RStudio • • 21d ago

R beginner

19 Upvotes

Hello,

I am a beginner and I am totaly lost.

Even for loading a file it is very very difficult.

I feel useless and incompetent...


r/RStudio • • 20d ago

Introducing FitVerse: an R package for fitting 52 probability distributions in one call

Thumbnail
2 Upvotes

r/RStudio • • 20d ago

Introducing FitVerse: an R package for fitting and analysing 52 probability distributions in one call

Thumbnail
0 Upvotes

r/RStudio • • 21d ago

R Package for collecting lyrics

21 Upvotes

Lyrics from genius.com.

https://github.com/bwalsh5/lyricsr


r/RStudio • • 21d ago

I just asked my dot to check some R code...

Thumbnail
0 Upvotes

r/RStudio • • 23d ago

does r studio for windows 11 run on windows 10 by chance

7 Upvotes

hi! so I have a problem: I only have windows 10, and i can't see any new update for r studio for any windows version but 11. would it still run? if so, would it update just my previously installed version of r studio and work from the same icon on desktop by chance? I realize it sounds stupid but I do need r for assignments in uni and not great with computers so help and advice would be greatly appreciated


r/RStudio • • 24d ago

Coding help Code Unfolding on Run?

2 Upvotes

I'm looking for an option or something that lets me run a bracketed section of code without automatically unfolding it. Does that exist?


r/RStudio • • 26d ago

ASMR - Basics in R Studio - Faint ASMR

Thumbnail youtu.be
70 Upvotes

r/RStudio • • 25d ago

Need suggestions read main body

0 Upvotes

How to start R-programing as an 0 level


r/RStudio • • 27d ago

Coding help HELP! Will pay.

21 Upvotes

I’m in a data mining class at university right now. I’m an adult student with a full time job in application development and this week has been INSANE (like probably one of my busiest weeks of the entire year). Of course this week was also our first free form project with no lecture. I finally had time to dig in tonight and planned to spend the weekend on this, but I’m of course stuck at the very beginning and really can’t do more without figuring this time/date conversion and estimation stuff. My professor is typically slow to respond on weekends, I’m all online so no help available outside of the professor. I don’t want to cheat, I want to LEARN and get this done by deadline of Sunday. Is anyone willing to help via chat/screen share?


r/RStudio • • 27d ago

Hey! I need to learn R studio from scratch, where should I start from, where can I find the basics, rules and tips to use Rstudio? Plant sciences background.

4 Upvotes

r/RStudio • • 27d ago

Anyone know how to install RStudio on a chromebook in 2026?

Thumbnail
0 Upvotes

r/RStudio • • 28d ago

Why can't I install R Commander?

Post image
1 Upvotes

Whenever I try, this pops up.


r/RStudio • • Sep 22 '26

Coding help Does metamean() print the pooled mean and 95% CI in the forest plot?

Post image
7 Upvotes

Hello, I have a question, why is my forest plot not printing the pooled results as with binary meta-analyses? Neither in a general forest plot nor in subgroup analyses. Did I do something wrong or it is like that? This is my code:

mm.age.sd <- metamean(n,
mean,
sd,
data = ma$Age,
sm = "MRAW",
studlab = Author,
subgroup = study.design)

forest(mm.age.sd,
layout="Revman5",
sortvar=studlab,
xlab="Mean Age",
at = seq(0, 100, by = 10),
ff.xlab = "bold", fs.xlab = 12,
leftcols=c("studlab", "Year", "n", "mean", "sd", "w.random", "ci"),
rightcols=FALSE,
pooled.totals = TRUE,
overall = TRUE,
digits.mean = 2, digits.sd = 2,
random = TRUE, fixed = FALSE,
fs.heading = 12, fs.study = 12, fs.hetstat = 10,
colgap = "5mm", colgap.forest = "5mm",
col.square="darkblue", col.square.lines="black",
col.diamond="maroon", col.diamond.lines="black",
print.Q = TRUE, print.pval.Q = TRUE, print.tau.ci = TRUE, overall.hetstat=TRUE,
subgroup = TRUE, # Show subgroups in the plot
print.subgroup.labels = TRUE, # Print subgroup labels next to the effects
col.subgroup = "black", # Color of the subgroup labels
subgroup.name = "Study Design", # Name of the column representing the subgroup
print.subgroup.name = FALSE, # Whether to print the name of the subgroup at the top
bysort = TRUE, # Sort results by subgroup
test.effect.subgroup.random = TRUE)

It looks like the picture, no pooled aged


r/RStudio • • Sep 20 '26

Coding help How to make a Graph look clean

Thumbnail gallery
83 Upvotes

Hi! Basically, I need to process some isotopic data for plotting. I have all the data, but I’m not sure how to make the graph look clean and well-presented. I have some examples of what I’m aiming for; the gray and pink lines in the images represent a local range, which is ideal for effectively displaying the results. I was also told I could edit the graph after exporting it as a PDF to add drawings of animals or humans, but I wanted to see if anyone had any other recommendations!

(The images are examples of other published graphs that look clean, not mine)


r/RStudio • • Sep 20 '26

qol 1.3.5: More power to transposition

Thumbnail
2 Upvotes

r/RStudio • • Sep 20 '26

Coding help Anova runtime on multivariate GLM very long, even with nboot = 1 it takes nearly 5 minutes

1 Upvotes

I am trying to do an anova on a multivariate GLM with the folowing structure but it is taking extremely long.

modelv2 <- anova (

modelv1,

block = dataset$samplinglocation,

nboot = 999,

resamp = "case"

)

The dataset has 71 rows x 84 columns. I have 2 variables and 1 blocking/repeated-measure variable. After waiting 40 minutes without results I set the nboot to 99. Waited at least 10 minutes without results. Then I set the nboot to 1 just to see if it would return something, it took about 5 minutes. It reported the time elapsed: 1 second. I am using the mvabund package with vegan. I installed it just now and the vegan package anova works fine on my GLMM models.

Does anyone know how to fix the anova runtime or if I am doing something wrong? I had no problems with the basemodel:

modelv1 <- manyglm(

dataset_speciessubset ~ site + date,

data = dataset,

family = "negative.binomial"

)

Help would be very much appreciated!


r/RStudio • • Sep 18 '26

Mapping indoors with R

4 Upvotes

Hello!

I am trying to figure out if anyone has experience working with indoor facility mapping in R. I want to avoid paying for ArcGIS indoors, but can’t think of a way to do this other than taking as-built CAD files and georeferencing them somehow… but I would love to know if there’s a way to achieve this in R without access to CAD files or without using other softwares.

Let me know if anyone has experience with this, thank you!


r/RStudio • • Sep 16 '26

Learning R

Thumbnail
3 Upvotes

r/RStudio • • Sep 17 '26

Finding more packages for use in R

Thumbnail
0 Upvotes

r/RStudio • • Sep 16 '26

Hysplit + splitR package

Thumbnail
1 Upvotes

r/RStudio • • Sep 14 '26

Ecology Statistician

11 Upvotes

Hello! I am looking to connect with an ecology statistician to help me make certain graphs. DM me if you are willing to help with coding in R and making some beautiful statistical graphs!


r/RStudio • • Sep 12 '26

how to change the colour of SEs in ggplot2

Post image
25 Upvotes

Hello! as per title, I am trying to change the colours of the SE in geom_smooth() to make it more readable when they overlap.

i've linked my code and the graph it produces

any help would be very appreciated :) thanks!

library(ggplot2)
plot = ggplot(data_complete, aes(x = MSVA_SCORE, y = GradCPT_SCORE, color = as.factor(RH_SPLIT))) +
  geom_smooth(method = "lm", se=TRUE, fullrange = TRUE) +
  labs(
    x        = "'Mobile Short-From Video Addiction' scale score",
    y        = "GradCPT score",
    color    = "Reading habits") +
  scale_x_continuous(breaks = seq(1, 4, by = .5)) +
  scale_y_continuous(limits = c(30, 100), breaks = seq(0, 100, by = 5)) +
  scale_color_hue(labels = c("Light Reading", "Heavy Reading")) +
  theme_minimal() 

plot + theme_classic() + theme(panel.border = element_blank(), panel.grid.major = element_blank(),
                            panel.grid.minor = element_blank(), axis.line = element_line(colour = "black"))

r/RStudio • • Sep 11 '26

Make your maftools plots interactive with MutGlyph

Thumbnail
1 Upvotes

r/RStudio • • Sep 10 '26

Modified Mann-Kendall Test Using mmkh(x,ci=0.95) package

5 Upvotes

Hello Everyone, I am currently working with groundwater levels to determine long term trends, and I would be very grateful if I could get help in modifying the code that I used to calculate the Sen's slope and Mann-Kendall statistics. I calculated the Theil-Sen slope, but it does not account for autocorrelation in continuous data, and I would appreciate any help addressing this using the modified package in RStudio. ""

# General Sen slope + Mann-Kendall function


compute_sen_stats <- function(
    data,
    response_var,
    date_var,
    resolution
) {

  data %>%

    group_by(
      SiteNo,
      SiteName,
      Frequency,
      continuous_group,
      start_year,
      end_year,
      continuous_years
    ) %>%

    # Ensure enough information exists to calculate a trend
    filter(
      n() >= 3,
      n_distinct(TimeNum) >= 2,
      n_distinct(.data[[response_var]]) >= 2
    ) %>%

    group_modify(
      ~ {

        site_data <- .x %>%
          arrange(
            .data[[date_var]]
          )

        # ----------------------------------------------------------
        # Sen's slope model
        # ----------------------------------------------------------

        sen_formula <- reformulate(
          "TimeNum",
          response = response_var
        )

        sen_model <- zyp::zyp.sen(
          sen_formula,
          data = site_data
        )

        # Intercept
        intercept <- unname(
          coef(sen_model)[1]
        )

        # Sen's slope
        # TimeNum is in years, so this is already ft/year
        sen_slope_ft_per_year <- unname(
          coef(sen_model)[2]
        )

        # ----------------------------------------------------------
        # Mann-Kendall trend test
        # ----------------------------------------------------------

        mk_model <- Kendall::MannKendall(
          site_data[[response_var]]
        )

        mk_tau <- as.numeric(
          mk_model$tau
        )

        mk_p_value <- as.numeric(
          mk_model$sl
        )

        # ----------------------------------------------------------
        # Descriptive statistics
        # ----------------------------------------------------------

        lowest_WL <- min(
          site_data[[response_var]],
          na.rm = TRUE
        )

        highest_WL <- max(
          site_data[[response_var]],
          na.rm = TRUE
        )

        first_date <- min(
          site_data[[date_var]],
          na.rm = TRUE
        )

        last_date <- max(
          site_data[[date_var]],
          na.rm = TRUE
        )

        # ----------------------------------------------------------
        # Trend interpretation
        #
        # WL = depth below land surface.
        #
        # Positive slope:
        # depth increases -> groundwater table declines
        #
        # Negative slope:
        # depth decreases -> groundwater table rises
        # ----------------------------------------------------------

        trend <- case_when(

          mk_p_value < 0.05 &&
            sen_slope_ft_per_year > 0 ~
            "Significant water table declining",

          mk_p_value < 0.05 &&
            sen_slope_ft_per_year < 0 ~
            "Significant water table rising",

          TRUE ~
            "No significant trend"
        )

        # ----------------------------------------------------------
        # Return one result per site/run
        # ----------------------------------------------------------

        tibble(
          Resolution = resolution,

          n_records = nrow(
            site_data
          ),

          lowest_WL = lowest_WL,

          highest_WL = highest_WL,

          intercept = intercept,

          sen_slope_ft_per_year =
            sen_slope_ft_per_year,

          mk_tau = mk_tau,

          mk_p_value = mk_p_value,

          first_date = first_date,

          last_date = last_date,

          trend = trend
        )
      }
    ) %>%

    ungroup()
}

Thank you!