Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

Reordering x variables in bar graph that are already correctly ordered in legend using ggplot in R

I have the following graph. I was able to get the legend to show the variables in the correct order. However, the order of the variables in the legend does not reflect the order within the graph ...
melbez's user avatar
  • 1,000
0 votes
0 answers
18 views

Functional programming with data.table

I want to make a simple function in R that works with data.frames/tibbles or with a data.table. So I created a new method: pesquisarComposicao <- function(BASE, ...) { UseMethod("...
droubi's user avatar
  • 103
0 votes
0 answers
14 views

Efficient handling of shapefiles with many polygons in R: simplification and merging

I have two shapefiles: one represents the counties in the United States, and the other represents the census divisions in Canada. I’d like to combine the two. To do this, I used the sf::st_union ...
Marine's user avatar
  • 89
0 votes
0 answers
16 views

Display Live messages from R console in Shiny Dashboard

I have a LogMessageWithTimestamp function defined in utils.R script. I am calling this function in various othet scripts to print the messages where in the r output console. Now i want to display all ...
Srijit Das's user avatar
0 votes
1 answer
13 views

R Syntax Highlighting for RMD files in VSCode Suddenly Stopped / Changed

I went to create a new .rmd file in vscode and realized suddenly my syntax highlighting changed/stopped working. I basically stripped all my settings, and did a clean install of vscode and my ...
r3vdev's user avatar
  • 325
0 votes
0 answers
15 views

dynamic nav panels in quarto document not showing without dummy chunk [duplicate]

While investigating a response to a previous SO question, I found a curious behavior when using htmltools::tagList() and DT::datatable() to display dynamic panels. Specifically, if I render this ...
langtang's user avatar
  • 25k
-1 votes
0 answers
41 views

C++ with Rcpp on R script [closed]

Someone had this type of error when is using Rcpp lib for decomposition into eigenvalues ​​and eigenvectors. If yes, how could I fix it? Thanks! This is the code: cppFunction(' Rcpp::List ...
Henrique Carqueja's user avatar
0 votes
0 answers
30 views

How to Resolve Special Character Encoding Problems in R When Using Remote Desktop?

I need help on how to solve a problem encoding special characters in R. I am working on a data warehouse project stored in slq server. The data is in French and when I do my calculations, I encounter ...
Diakaria KORERA's user avatar
0 votes
1 answer
55 views

Dynamically create tabs in quarto

I want to dynamically create tabs in quarto using the iris dataset. One tab for each species, and print the table for that species in the tab. Here is my quarto code so far: --- title: iris tabset ...
Basil's user avatar
  • 1,006
0 votes
0 answers
11 views

Merging multiple NetCDFs from Copernicus into one NetCDF in Rstudio for plotting

I am trying to merge multiple NetCDFs containing 4 dimensions (lat, lon, depth, time) into one NetCDF. Each contain the same variable (sea surface temperature or 'thetao') and the same depth value and ...
Bubbles's user avatar
2 votes
3 answers
63 views

How to change y axis individually in facet plots

I have this data containing 3 components and the total of all components put together and I am trying to plot everything in one figure, so I decided to use a facet plot but I would like to plot the ...
Gabriel's user avatar
  • 21
-1 votes
0 answers
24 views

Reshape data set with t1/t2 columns for different survey rounds [duplicate]

I have a data frame that looks like this: participantid surveyround age aob_01 aob_02 aob_03 A1 t1 21 3 4 5 A1 t2 NA 2 3 1 A5 t1 34 3 4 2 A5 t2 NA 1 1 4 B3 t1 27 3 5 5 B3 t2 NA 1 3 5 participantid ...
AnH's user avatar
  • 1
0 votes
0 answers
38 views

Display R console outputs/logs via shiny [duplicate]

I have a R Shiny app which i am running from Posit. It is running perfectly by running app.R file and the dashboard is launching and the corresponding logs / outputs are getting displayed in R studio ...
Srijit Das's user avatar
0 votes
1 answer
36 views

Individual marker.line is not always refelcted in the legend

Disclaimer. I am working with R but the question is actually a general plotly question (I am just faster generating a plot in R than in vanilla JS). I have the following code, which adds a border ...
thothal's user avatar
  • 20.4k
3 votes
2 answers
68 views

How do you specify a variable name for a function call using a character variable in R?

I am working in R trying to create a wrapper function that calls a specified internal function (which is some existing function) and does some things with it. My wrapper function will include an ...
Ben's user avatar
  • 1,668

15 30 50 per page
1
2 3 4 5
34061