Professional Documents
Culture Documents
DA-3
CODE:
# Load the necessary packages
library(quantmod)
# The data is stored in the variable with the name of the ticker symbol
# So you can view it with
head(AAPL)
# Plot the decomposed data to visualize the trend, seasonal and random components
plot(decomposed_data)
Step 1:
Output:
’
3.Explore Power bi tool with an excel workbook of Disney princesses, and
create a table from that (Add screenshot of every steps carried out in the tool).
4. Consider a multivariate dataset and create visualization on it using R.
CODE:
# Load the necessary libraries
library(ggplot2)
library(dplyr)
# Create a scatter plot of mpg (miles per gallon) vs hp (horsepower), colored by cyl (number of
cylinders)
ggplot(mtcars, aes(x = hp, y = mpg, color = factor(cyl))) +
geom_point() +
labs(title = "Scatterplot of mpg vs hp", x = "Horsepower", y = "Miles per Gallon", color = "Number
of Cylinders")