
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

572 Views
To remove interaction from regression model in stargazer in R, we can follow the below steps −First of all, create a data frame.Then, create a regression model using stargazer.After that, create the regression model with stargazer without interaction terms.Create the data frameLet's create a data frame as shown below − Live Demox1

325 Views
To create a bar plot in R filled with color palette in RColorBrewer package, we can follow the below steps −First of all, create a vector.Create the bar plot with color palette in RColorBrewer package.Example 1Let’s create a vector as shown below − Live Demox

236 Views
The different color palettes can be found by using display.brewer.all() function. Each of the palette has different colors. There are three types of palettes defined with names equential, diverging, and qualitative. They are defined for specific uses as written below −Sequential palettes are suited to ordered data that progress from low to high.Diverging palettes put equal emphasis on mid-range critical values and extremes at both ends of the data range.Qualitative palettes are best suited to representing nominal or categorical data.Find the color palettes in RColorBrewer packageInstalling and Loading RColorBrewer package and finding the different color palettes −install.packages("RColorBrewer") library(RColorBrewer) display.brewer.all()On executing, ... Read More

92 Views
To create a graph in base R with multiple shades of a particular color, we can follow the below steps −First of all, create color shades using colorRampPalette then plot a graph.Use the color shades to create the graph.Example 1Create the color shadesUsing colorRampPalette function to create the color shades between red and darkred color then creating the plot − Live DemoColor

488 Views
To display axes ticks and labels inside the plot using ggplot2 in R, we can follow the below steps −First of all, create a data frame.Then, create a plot using ggplot2.After that create the same plot with theme function to change the position of axes ticks and labels.Create the data frameLet's create a data frame as shown below − Live Demox

139 Views
To divide the row values by row variance in R’s data.table object, we can follow the below steps −First of all, create a data.table object.Then, use apply function to divide the data.table object row values by row variance.Create the data.table objectLet’s create a data.table object as shown below −library(data.table) x

209 Views
To divide data frame row values by row variance R, we can follow the below steps −First of all, create a data frame.Then, use apply function to divide the data frame row values by row variance.Create the data frameLet's create a data frame as shown below − Live Demox

377 Views
To divide data frame row values by row maximum excluding 0 in R, we can follow the below steps −First of all, create a data frame.Then, use apply function and if else function to divide the data frame row values by row maximum excluding 0.Create the data frameLet's create a data frame as shown below − Live Demox