![]() Loading ggplot2 package and creating scatterplot between x and y with default size of tick marks − Example library(ggplot2)Ĭreating scatterplot between x and y with larger size of tick marks − Example ggplot(df,aes(x,y))+geom_point()+theme(=unit(0.2,"inch")) OutputĮxample ggplot(df,aes(x,y))+geom_point()+theme(=unit(0. ggplot (df,aes (x,y))+geompoint ()+theme (axis. ![]() ![]() For example, if we have a data frame called df that contains two columns say x and y then the scatterplot between x and y with larger size of tick marks can be created by using the below command. For example, if we have a data frame called df that contains two columns say x and y then the scatterplot between x and y with larger size of tick marks can be created by using the below command − ggplot(df,aes(x,y))+geom_point()+theme(=unit(0.8,"inch")) Example To change the tick size using ggplot2, we can use theme function with argument. Don’t hesitate to let me know in the comments section, if you have further questions.To change the tick size using ggplot2, we can use theme function with argument. Summary: At this point you should have learned how to increase or decrease the font size in a corrplot in R. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |