Page 274 - Data Science class 11
P. 274
Example
Enter the following code snippet in the script panel:
#using ggmaps extract world map
> world_map <- qmap("World", zoom = 2)
#see how map looks
> world_map
#plot the data on map
> world_map + geom_point(aes(x=nation.x, y=nation.y),
data = countries, alpha = 0.5,
size = 3, color = "red")
World map plot using ggplot in R
This looks better. The ggmap() package is linked with Google Maps and hence extracts location details directly.
7.11 statIstIcal analysIs In r
Statistical methods involved in carrying out a study include planning, designing, collecting data, analysing, drawing
meaningful interpretations, and reporting the research findings. The statistical analysis gives meaning to the
meaningless numbers, thereby breathing life into lifeless data.
Statistical analysis in R is performed by using many in-built functions. Most of these functions are part of the R base
package. These functions take the R vector as an input along with the arguments and gives the result.
The phrases mean, mode, and median are the most commonly used basic statistics terminology. All of them are
referred to as "Measures of Central Tendency." The normal distribution, sometimes known as a bell curve, is the most
prevalent distribution in statistical study.
272 Touchpad Data Science-XI

