Using ggplot in R, I want to increase the distance between the values around the value 1 on the x axis, ie between 0.8 and 1.2.
set.seed(123)
library(ggplot2)
somedatasetx <- append(round(runif(100,0.2,10),2),round(runif(100,0.8,1.2),2))
somedatasety <- round(runif(200,0.2,10),2)
ggplot(data=NULL, aes(x=somedatasetx, y=somedatasety)) +
geom_point(color="red") +
scale_x_log10(
breaks=c(0.2,1,10),
limits=c(0.2,11)
)
I have a concentration of values around those limits. Simply put, is there a way to expand the distance between 0.8 to 1.2 in order to visualize the values in this area? Another way to put it is that I want the value range from 0.8 to 1.2 to go as from 0.5 to 5 on the graph above? Obviously the log scale on the x axis is compromised as a consequence of this action.
Edit: Maybe there is a way to combine both continuous and log10 scale on an x-axis? Say, continuous between 0.2 to 1.2, and log10 from there and above? If I could control the proportions of each on the x axis, that could be the solution. Just don't know if it's possible.