I want to impose a Gumbel (or Gaussian) copula on two independent random variables
library(tidyverse); set.seed(1); n <- 1e3
data <- tibble(x = rbeta(n, 1, 2), y = rbeta(n, 1, 3))
plot(data$x, data$y)
Here is the uncorrelated plot:

I would like impose a copula to reorder the deviates such that I get the following:
Gaussian
I have looked through the copula, MASS and VineCopula packages but it is unclear how this can be achieved. Thank you very much!


library(copula); n <- 10e3; alpha <- 3; gumbel.deviates <- rCopula(10e3, gumbelCopula(alpha)) %>% as_tibble; plot(gumbel.deviates$V1, gumbel.deviates$V2)– Vincent Risington Apr 08 '19 at 15:22