Yes, although I don't think it's a great idea because height and weight have different units.
set.seed(1234)
df <- data.frame(
sex=factor(rep(c("0", "1"), each=200)),
weight=round(c(rnorm(200, mean=55, sd=5),
rnorm(200, mean=65, sd=5))),
height=round(c(rnorm(200, mean=160, sd=10),
rnorm(200, mean=170, sd=10)))
)
library(tidyverse)
library(modelr)
lm1 <- glm(sex ~ weight, data=df, family="binomial")
lm2 <- glm(sex ~ height, data=df, family="binomial")
df %>%
add_predictions(lm1, "pred_weight", type = "response") %>%
add_predictions(lm2, "pred_height", type = "response") %>%
pivot_longer(c(height, weight)) %>%
mutate(pred = if_else(name == "height", pred_height, pred_weight)) %>%
ggplot() +
aes(value, pred, color = name) +
geom_line() #+

#facet_wrap(~name, ncol = 1, scales = "free")
Created on 2021-08-12 by the reprex package (v1.0.0)