How to rotate digit images in R




I have some image data like:

I want to rotate each image by some degree(10/20) and append the results to the original data so that I get more data to train upon.
How can i acheive this?Is there any specific package in R to do this or do i have to create some function??
Kindly help!!


I dont know image analysis but I am assuming you need to apply a function here.

Try this article -