Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [r]

R is a free, open-source programming language & software environment for statistical computing, bioinformatics, visualization & general computing. Please use minimal reproducible examples others can run using copy & paste. Show desired output entirely. Use dput() for data & specify all non-base packages with library(). Don't embed pictures for data or code, use indented code blocks instead. For statistics questions, use https://stats.stackexchange.com.

0 votes
0 answers
46 views

Create a function that converts a dataframe into a format suitable for a treemap structure

I want to create a treemap for a dataframe using the Plotly package. For this purpose, I need to create a function that converts the dataframe into a format suitable for a treemap structure. On the ...
Masoud's user avatar
  • 565
0 votes
1 answer
19 views

How to adjust x axis in coefficient plot with sjPlot's plot_model when x value range is smaller than -1,1?

I'm plotting multiple regression coefficients with plot_model and the x axis is automatically set to -1,1 even though the possible range of my values is smaller, which makes the estimates hard to see ...
kommoder_Waran's user avatar
1 vote
1 answer
22 views

as.ggplot in dendextend does not leave enough room for leaf labels

I've been using ggplot2 for automated report generation, and had been using ggdendro for accompanying dendrograms. However, as ggdendro seem to no longer be actively supported and I encountered this ...
Ben Wright's user avatar
2 votes
2 answers
51 views

Ploting weekly data with base::plot with unique and evenly spaced labels

I am trying to create a simple scatter plot, so weeks on the x-axis and "cases" on the y with each indicated by a dot and note I can only use base R's plot(), no ggplot. I have data with 156 ...
Fable's user avatar
  • 57
-1 votes
0 answers
10 views

Regression tree's predicted results interpretation for type = "vector" in R [closed]

I am using rpart to build a CART model (method = "anova") and predict.rpart with type = "vector to make a prediction. I understand that that way is building a regression tree, but I ...
Phoebe's user avatar
  • 109
-1 votes
2 answers
48 views

R, ggplot2 - time on x axis

In R I have a data frame with bid and ask prices for a single day. Here is an example: TimeHM; Bid_Price1; Ask_Price1 08:12; 101; 102 08:13; 101; 102 08:14; 102; 104 ... 17:05; 104; 105 So, each new ...
Avocado's user avatar
  • 84
0 votes
0 answers
28 views

Indicator Species Analysis Long Run Time [closed]

I am using the indicspecies R package to run an indicator species analysis on a large dataset to see what species are indicators for 3 different regions over the years 2001 to 2021. My matrix is ~550 ...
mp101's user avatar
  • 3
0 votes
1 answer
42 views

Equation not rendered in helper files of function of html pages [closed]

I am building a package and an associated website (via Github Pages). Let's say I have a function funX. In R, when I do ?funXI have some equations (using \eqn{} or \deqn{}) in the description files, ...
G. Ander's user avatar
  • 306
-1 votes
1 answer
29 views

How to change the background color of a Datatable header using css?

My question is similar to this question, except that I would like to use a css rule in an external css file.
Edd's user avatar
  • 85
6 votes
2 answers
95 views

How to capture install.packages output in R with sink()?

I'd like to capture all output and errors when installing a packages. The steps when installing a package, however, do not seem to be captured by the sink() command. Here's an example: A main.R file: ...
Brian Albert Monroe's user avatar
0 votes
0 answers
23 views

R shiny app - rendering is much slower when run on remote server compared to local server

I made an R shiny app which runs perfectly in my local browser on my local server, however the rendering is noticeably slower when I run the same app from my local browser on a remote server. A quick ...
Þórhildur Júlíusdóttir's user avatar
3 votes
1 answer
40 views

Keep ggplot font size constant in different figure dimensions

I'm in a position that requires me to frequently change the dimensions of my plots via the fig.dim=c(...,...) option in each r chunk. However, I have a problem that I haven't been able to solve yet. ...
Coppertank's user avatar
0 votes
0 answers
28 views

Issue with Residual Plot Pattern after Fitting beta_family Model in glmmTMB

I'm working with proportion data and have tried several models to address issues of overdispersion and underdispersion. Initially, I used a binomial distribution model which showed overdispersion. ...
KSN2's user avatar
  • 1
0 votes
0 answers
11 views

Grab the user details when a user authenticates an R shiny web app using Azure Active Directory

I am new to the concept of web apps deployed in Azure and related authentications. I have an R Shiny app, hosted as an app service in Azure cloud using Docker containers. I have few Azure user groups ...
Moohoo's user avatar
  • 9
0 votes
0 answers
27 views

Merging PISA 2000 student file with ESCS index file [duplicate]

I am using PISA data from 2000, 2003 & 2018. I am using the ESCS index. For 2000, the ESCS index is not included in the student file and has to be merged with the student file. However, I load ...
user26513034's user avatar

15 30 50 per page