Skip to content

Changing the color and line thickness of CIs #70

Description

@jacob-smith-econ

Just wanted to post my sample code for changing the line thickness and color of the CIs. I spent a little bit of time looking around and I think adding some explicit documentation would be helpful.

p<-HonestDiD::createSensitivityPlot_relativeMagnitudes(delta_rm_results, originalResults)


p$layers[[1]]$aes_params$linewidth <- 1.5


p+
theme_minimal(base_size = 16) +
  scale_colour_manual(values = c(
    "Original" = "darkred",
    "C-LF" = "steelblue"
  ))+
  theme(
    axis.line = element_line(linewidth = 0.8),
    axis.text = element_text(size = 14),
    axis.title = element_text(size = 16, face = "bold"),
    legend.title = element_blank(),
    legend.text = element_text(size = 13)
  )

Image

Thanks again for this amazing package!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions