when do you use an X bar and R chart?

when looking at variables and the sample size is greater than 1