Advertisement
matheus__serpa

plot2

Aug 26th, 2020
2,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 1.08 KB | None | 0 0
  1. g2 <- ggplot(data=dmetric, aes(x=x, y=y)) +
  2.    geom_point(colour = "black", size = 6) +
  3.    geom_smooth(method="lm", col = "red", se=FALSE, size=4) +
  4.    scale_y_continuous(breaks=seq(0, 50, 10)) +
  5.    scale_x_continuous(breaks=seq(0, 0.4, 0.1)) +
  6.    expand_limits(x = seq(0, 0.4, by = 0.1)) +
  7.    expand_limits(y = seq(0, 50, by = 10)) +
  8.    labs(x = "Instruction Dissimilarity", y = "Performance Improvement (%)") +
  9.    theme_bw(base_size = 60) +
  10.    scale_x_continuous(position = "top") +
  11.    theme(
  12.     panel.grid = element_blank(),
  13.     legend.position="none",
  14.     legend.direction = "horizontal",
  15.     legend.title = element_blank(),
  16.     legend.key.width = unit(2, "cm"),
  17.     axis.ticks = element_line(colour = "black"),
  18.     panel.border = element_rect(colour = "black"),
  19.     axis.text=element_text(colour = "black", size=70),
  20.     axis.title=element_text(size=60),
  21. #    axis.title.x = element_blank(),
  22. #    axis.title.y = element_blank(),
  23.     legend.text=element_text(size=90),
  24.     legend.box.margin = margin(b = -1.5, unit="cm"),
  25.     plot.margin = unit(c(0,.5,.5,.5),"cm")
  26.    )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement