Complete pooling:

No pooling (fixed effects, the ``within'' estimator):

Partial pooling (random effects):

Fixed effects in plm:

Fixed versus random effects: