Patch to ggplot script; values= instead of value=
also assigned initial ggplot to an object p to avoid plotting error