GGplot Logistic Model with More than One Predicting Variables

<p><strong>Background Story:&nbsp;</strong>One day, my boss asked me to run a Logistic Regression model&nbsp;<em>aval= dlevel+d2</em>&nbsp;and plot the result. After reviewing the output, she generated a modification part for a new data set that will reflect the d2 variable in the model and asked me to try again.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*nhdWUDTy11iQLfuBwPROlg.png" style="height:383px; width:700px" /></p> <p>Without Modification</p> <p>It is standard that we use GGplot to model logistic regression with one predicting variable(y= x). We can add factor groups for geom points to show the different responses, but GGplot won&rsquo;t intake two different variables (y=x1 + x2). In this case, We need to construct a new data frame that contains the new predicted value from the desired model.</p> <p><a href="https://blog.devgenius.io/ggplot-logistic-model-with-more-than-one-predicting-variables-72c821f527be"><strong>Website</strong></a></p>