Publications by finnstats »
Grouped Data Mean and Standard Deviation Calculator
We want to determine the mean and standard deviation of ungrouped data in practically all circumstances. However, how can you do that with grouped data? Grouped Data Mean and Standard Deviation Let’s look at an example of how to compute mean and SD. How to Calculate Root Mean Square Error (RMSE) in R » RangeFrequency1-20421-40841-60661-80281-...
1496 sym R (161 sym/4 pcs) 2 img 3 tbl
Adding text labels to ggplot2 Bar Chart
Adding text labels to ggplot2, Is it possible to add text labels to a bar chart in a simple way? Yes, In this article, you’ll learn how to add a frequency count to each bar in a bar chart. First, let’s make a data frame. Animated Graph GIF with gganimate & ggplot » Adding text labels to ggplot2 set.seed(123) data <- data.frame(x = sample(L...
1515 sym R (617 sym/5 pcs) 6 img
Binomial Distribution in R-Quick Guide
Binomial Distribution in R, Binomial distribution was invented by James Bernoulli which was posthumously published in 1713. Let n ( finite) Bernoulli trials be conducted with probability “p” of success and “q” of a failure. The probability of x success out of n Bernoulli trials is given by f(x)=(ncx)pxqn-x where x=0, 1 , 2, …..,n. 0<...
2035 sym R (1772 sym/3 pcs) 6 img
Ogive curve in R
Ogive curve in R, It is a graph plotted for the variate values and their corresponding cumulative frequencies of a frequency distribution. The sum of all preceding frequencies up to this point is referred to as cumulative frequency. Its shape is just like elongated S. An ogive curve is prepared either for more than type or less than type distrib...
1861 sym R (257 sym/2 pcs) 4 img
How to Identify Outliers-Grubbs’ Test in R
How to Identify Outliers, The Grubbs’ Technique is a statistical test that may be used to detect outliers in a dataset. A dataset should be generally normally distributed and have at least 7 observations to use this test. This article shows how to use R to run Grubbs’ Test to find outliers in a dataset. How to Identify Outliers -Grubbs’ Te...
3752 sym R (938 sym/13 pcs) 2 img
How to Change Background Color in ggplot2
When you change the background colors in ggplot, it will be more visually pleasing and attract more attention than the default ones. p + theme(panel.background = element_rect(fill = 'white', color = 'blue'), panel.grid.major = element_line(color = 'green', linetype = 'dotted'), panel.grid.minor = element_line(color = 'green', size = 2)) Here are...
1598 sym R (1853 sym/13 pcs) 24 img
Draw a trend line using ggplot-Quick Guide
Draw a trend line using ggplot, Technical analysts utilize the trendline as one of their most significant tools. A trendline aids technical analysts in determining the data set direction. Let’s start by making a data frame. data <- data.frame(x=c(1, 2, 5, 3, 5, 5, 9,10,12), y=c(18, 10, 10, 20, 22, 13, 15,16,17)) data x y 1 1 18 2 2 1...
1779 sym R (493 sym/5 pcs) 10 img
How to Change Legend Position in ggplot2
Change Legend Position in ggplot2, When a shape feature is mapped to a variable in the aes() component of the ggplot() call, ggplot2 will automatically construct a legend for your chart. Approach1: Legend outside Plot It is possible to put the legend on the plot’s “top,” “right,” “bottom,” or “left.” COUNTIF Function in R » Ea...
1734 sym R (363 sym/6 pcs) 16 img
Side-by-Side plots with ggplot2
How to Create Side-by-Side Plots in ggplot2?. Using the ggplot2 package in R, you can often construct two plots side by side. Fortunately, with the patchwork and gridExtra packages, this is simple to accomplish. Side-by-Side plots with ggplot2 Let’s start with the packages. library(ggplot2) library(patchwork) This lesson walks you through var...
1740 sym R (667 sym/10 pcs) 20 img
How to Rotate Axis Labels in ggplot2?
How to Rotate Axis Labels in ggplot2?. Axis labels on graphs must occasionally be rotated. Let’s look at how to rotate the labels on the axes in a ggplot2 plot. Let’s begin by creating a basic data frame and the plot. Rotate Axis Labels in ggplot2 library(ggplot2) p <- ggplot(ToothGrowth, aes(x = factor(dose), y = le...
1306 sym R (525 sym/5 pcs) 12 img