gg <- ggplot(data = data, aes(Type1Error_v, power_v, color = factor(test))) +
geom_line(alpha = 0.8) +
geom_abline(intercept = 0, slope = 1) +
labs(title = expression(paste(H[0], ": BN with ", mu[1], "=10, ", mu[2], "=11, ", sigma[1]^2, "=1, ", sigma[2]^2, "=50.23, ", rho, "=0.8, ", "N=50, p=10%, t~Exp(0.1)")),
x = "False Positive Rate (Type I Error Rate)",
y = "True Positive Rate (Power)") +
xlim(0, 1)
Is there a way to make the title in two lines? atop and \n both doesn't work here.