From the documentation for extractHOGFeatures: To capture large-scale spatial information, increase the cell size. When you increase the cell size, you may lose small-scale detail
There is not one optimal cell size. The best size depends on your data.