小编JJG*_*abe的帖子

R 4.1.0 crashes when trying to ggplot

I updated to R 4.1.0 yesterday (19 May 2021) and initially everything was working fine, I just needed to reinstall all of my User Library packages. Now I am unable to make a simple ggplot.

library(ggplot2)
Cars <- mtcars
ggplot(Cars, aes(x = mpg, y = hp)) +
geom_point()
Run Code Online (Sandbox Code Playgroud)

The ggplot line causes a whole bunch of [21263:21263:20210520,162145.598752:ERROR elf_dynamic_array_reader.h:61] tag not found (see picture).

Looking around, this error is usually associated with nvidia graphics drivers. I have a GeForce2 with what …

crash r ggplot2 rstudio

5
推荐指数
0
解决办法
545
查看次数

Divide all columns by a chosen column using mutate_all

I have a sample data frame that looks like this (my full dataframe has "d" plus 57 elements):

d <- seq(0, 100, 0.5) 
Fe <- runif(201, min = 0, max = 1000) 
Ca <- runif(201, min = 0, max = 1000) 
Zr <- runif(201, min = 0, max = 1000) 
Ti <- runif(201, min = 0, max = 1000) 
Al <- runif(201, min = 0, max = 1000) 
example <- data.frame(d, Fe, Ca, Zr, Ti, Al)
Ratio_Elements <- c("Fe", "Ti", …
Run Code Online (Sandbox Code Playgroud)

r dplyr mutate

4
推荐指数
1
解决办法
1686
查看次数

标签 统计

r ×2

crash ×1

dplyr ×1

ggplot2 ×1

mutate ×1

rstudio ×1