Bugfix in rplot + typo correction
(cherry picked from commit 1df8bf15c2ea3fbe145f5dc8dfe6625be51e0a72)