Here we have generated 10 random values for x and y axis using rnorm() function. Here we will create a simple DataFrame with two variables named X & Y then assign it to the data object. To install and load the ggplot2 package, write following command to R Console.
How to make a superscript on excel chart axis labels how to#
In this article, we will see how to use Superscript and Subscript axis labels in ggplot2 in R Programming Language.įirst we should load ggplot2 package using library() function.
Convert a Vector into Factor in R Programming – as.factor() Function.Convert Factor to Numeric and Numeric to Factor in R Programming.Convert a Data Frame into a Numeric Matrix in R Programming – data.matrix() Function.Finding Inverse of a Matrix in R Programming – inv() Function.Replace the Elements of a Vector in R Programming – replace() Function.Change column name of a given DataFrame in R.How to create an empty DataFrame in R ?.How to Replace specific values in column in R DataFrame ?.Superscript and subscript axis labels in ggplot2 in R.ISRO CS Syllabus for Scientist/Engineer Exam.
ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.