Pinned content
View all 3 collectionsR Language admins have deemed these posts noteworthy.
R Language Frequently Asked Questions
How to write a good R question with a reproducible example
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
Error using mcp2atm function for robust pairwise comparisons - undefined columns selected
How to get predicted probabilities of being in each class of three using xgboost in R?
Predicted values in a Tweedie GLM-model
How to speed up R dist matrix for hierarchical clustering for large matrix input data?
I want to colorize the points of a Shapviz dependence output acording to the variable
Looking for an extra challenge?
View all bountied questionsThese questions have a bounty on them
When extending ggplot2, how should I apply scaling functions per group instead of as a whole?
Issues connecting odbc in newest R Studio update
lintr no visible binding for global variable ‘.SD’
Recommended answers
View all recommended answersThese answers have been recommended
Produce table with data bars in base R or ggplot2
I think I would just create this as a faceted ggplot: library(tidyverse) holiday_accommodation %>% pivot_longer(-Region, names_to = 'Accommodation type') %>% mutate(`Accommodation type` = ...
Pattern fill in highcharter bar chart
Fill patterns are implemented in a separate module which you have to add as a dependency using hc_add_dependency("modules/pattern-fill.js"): library(highcharter) #> Registered S3 method ...
move inset plot legend
One option would be to add a legend to your main plot for which I use a fake invisible geom_point and remove the legend for your inset plot. As I don't have your dataset dat.eez.usa1 I simply used the ...
How to adjust x axis in coefficient plot with sjPlot's plot_model when x value range is smaller than -1,1?
As plot_model uses coord_flip under the hood you have to set the limits= for the "x" axis using scale_y_continuous: library(sjPlot) #> Learn more about sjPlot with 'browseVignettes("...
Ploting weekly data with base::plot with unique and evenly spaced labels
We can use seq.Date and axis.Date: plot(exampledata$Date, exampledata$Cases, main="Weeks by Cases", ylab="Cases", ylim=c(500000,900000), xlab="", ...
See what's trending
View all trending questionsThese are the most active questions in R Language Collective
How to make a great R reproducible example
Sort (order) data frame rows by multiple columns
How do I replace NA values with zeros in an R dataframe?
Drop data frame columns by name
How to join (merge) data frames (inner, outer, left, right)
How to write a good R question with a reproducible example
Create multiple PDF/HTML reports using R Markdown in a loop
Simply submit a proposal, get it approved, and publish it.
See how the process works