Сначала необходимо определить функцию и ее обратную сторону для маркировки, затем использовать функцию trans_new
из пакета весов:
log2_1 <- function(x) log2(x)/(log2(x)-1)
antilog2_1 <- function(x) 2^(x/(x-1))
sp + scale_x_continuous(trans = trans_new("log2_1",
transform=log2_1,
inverse=antilog2_1)) +
scale_y_continuous(trans = trans_new("log2_1",
transform=log2_1,
inverse=antilog2_1))
![enter image description here](https://i.stack.imgur.com/maSq1.png)