T thanhthao New member Jan 7, 2022 #1 How do I remove grid lines in R? Answer To remove a particular panel grid, use element_blank() for the corresponding theme argument. For example to remove the major grid lines for the x axis, use this: p + theme(panel. grid.
How do I remove grid lines in R? Answer To remove a particular panel grid, use element_blank() for the corresponding theme argument. For example to remove the major grid lines for the x axis, use this: p + theme(panel. grid.