Now, the question asks me to plot "Log-Likelihood versus B1". I only know how to get a single value of log-likelihood in R (logLik function), by passing in the logit regression.

So what exactly does he mean by plotting log-likelihood versus B1, even though my understanding is that log-likelihood is only a value?

Anyone know of any command in R that can do it?

Thanks in advance!