I have two dataframes:
df1 <- data.frame(runif(100,0,0.02), 1:100)
colnames(df1) <- c("a","b")
df2 <- data.frame(runif(100,0,0.3), 1:100)
colnames(df2) <- c("a","b")
I need two scatterplots (one for each dataframe) side by side, with a log-log scale on y axis that looks exactly like this (external yticks, minor y ticks between all the labels and so) but limited to 1 (not 10):
I tried (scatterplot of 1 dataframe):
ggplot(df1, aes(x=factor(b), y=a)) +
geom_point() +
scale_y_continuous(trans = log10_trans(),
breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
annotation_logticks()
but I still don't get what I want
