How to plot excel data in R? Last Updated : 26 Mar, 2021 Comments Improve Suggest changes Like Article Like Report Plotting graph in R using an excel file, we need an excel file with two-column in it, the values in the first column will be considered as the points at the x-axis and the values in the second column will be considered as the points at the y-axis. In this article, we will be discussing the approach to plot a graph using an excel file in R language. To import and read the excel file to the R console, the read_excel() function from readxl library in R will be used. This function will read an excel-file available in your current working directory. To install the package of the readxl library in R the user must need to follow the following syntax in the R console. Syntax: install.packages("readxl") Data in use: plot() function is used for plotting of R objects. With the provided parameters this function returns a scatter plot by default. Syntax: plot(x,y,main,xlab,ylab,sub,asp) Parameters: x:-the x coordinates of points in the ploty:-the y coordinates of points in the plotmain:-an overall title for the plotsub:-a subtitle for the plotxlab:-a title for the x-axisylab:-a title for the y-axisasp:-the y/x aspect ratio Return: Scatter plot of the given x and y values. Approach Import libraryImport excel fileRead its dataPlot graphDisplay plot Example: R library(readxl) Data_gfg <- read_excel("Data_gfg.xlsx") plot(x = Data_gfg$x,y = Data_gfg$y, xlab = "x-axis", ylab = "y-axis", main = "Plot" ) Output: Comment More infoAdvertise with us Next Article How to plot excel data in R? G geetansh044 Follow Improve Article Tags : R Language R-Excel Similar Reads How to Plot Bivariate Data in Excel? Bivariate data is the most used type of data representation for the plotting of scatter plots . The data depends on two variables as its name suggests, and it is analyzed using different machine-learning algorithms, using different charts, etc. Bivariate can be performed using different methods. Amo 8 min read How To Create Dot Plots In Excel? A Dot plot is a type of chart used in statistics for representing relatively small data sets where the values are uniquely categorized. A dot plot is also known as dot chart or strip chart. A dot plot and a bar graph are similar in the sense that the height of each âbarâ of dots is equal to the numb 2 min read How to Create an X-Y Scatter Plot in Excel? Excel is powerful data visualization and data management tool which can be used to store, analyze, and create reports on large data. It can be used to visualize and compare data using a graph plot. In excel we can plot different kinds of graphs like line graphs, bar graphs, etc. to visualize or anal 2 min read How to import an Excel File into R ? In this article, we will discuss how to import an excel file in the R Programming Language. There two different types of approaches to import the excel file into the R programming language and those are discussed properly below. File in use: Method 1: Using read_excel() In this approach to import th 3 min read How to read excel file in R ? We may work with structured data from spreadsheets, take advantage of R's capabilities for data analysis and manipulation, and incorporate Excel data into other R processes and packages by reading Excel files in R. The readxl package offers a simple and effective method for reading Excel files into 3 min read Like