Running your example gives me this
And I think that is the expected output. Do you get something different ?
BTW I edited your post to format correctly the Rmd code. See
Running your example gives me this
And I think that is the expected output. Do you get something different ?
BTW I edited your post to format correctly the Rmd code. See