# NOT RUN {
# }
# NOT RUN {
# default will find the efficient front in top right quadrant
ggplot(mtcars, aes(mpg, wt)) +
geom_point() +
geom_frontier()
# change the direction of the steps
ggplot(mtcars, aes(mpg, wt)) +
geom_point() +
geom_frontier(direction = 'hv')
# use quadrant parameter to change how you define the efficient frontier
ggplot(airquality, aes(Ozone, Temp)) +
geom_point() +
geom_frontier(quadrant = 'top.left')
ggplot(airquality, aes(Ozone, Temp)) +
geom_point() +
geom_frontier(quadrant = 'bottom.right')
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab