• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

EECS 1520 Summer Final Test-Questions, Answers| Newest Update 2026/2027

Document preview thumbnail
Preview 2 out of 9 pages

EECS 1520 Summer Final Test-Questions, Answers| Newest Update 2026/2027

Content preview

EECS 1520 Summer Final Test-Questions, Answers|
Newest Update 2026/2027
What are the 3 main components involved in creating GGPLOTS?

1. Data - Identify which file to use

ex.

> ggplot( "name_of_file" )



2. Aesthetics - Identify what each of the axis will look like and the data they will use

ex.

> aes(

x = "name_data"

y = "name_data"

)



3. Geometry - Choosing a type of graph

> geom_point( "type_of_graph" )

What are the different types of geoms used in ggplots?

- Geom_point = Scatterplot

- Geom_line = Line Graph

- Geom_bar = Bar Graph

- Geom_histogram = Histogram

- Geom_Boxplot = Boxplot

, What does "data = NULL" mean in reference to GGPPLOTS?

NULL means the absence of any value, when generating a ggplot that DOES NOT use an

external data frame like an excel sheet you use "data=NULL". In these cases you assign value to

variables that are often placed within the Aes( ) field on the x and y axis respectively

What does the following code create in R:



> ggplot (data = NULL, aes( x = "variable" , y = "variable" ) + geom_point ( ) + geom_line

()

In ggplots what is the difference between a categorical variable and a numerical variable

for colour = " " ?

When variable used for colour in a ggplot is numerical (meaning it only has numbers assigned to

it) then the colour automatically recognizing the values as continuous and creates a GRADIENT

of colour. When the variable is categorical (a mix of text and numbers, or all strings) then each

value has a distinct separate colour.

How can you get around the automatic graduation of colour with numerical variables?

By utilizing Factor ( ), you are able to change a numerical variable into a categorical one as

factor changes the values of the numerical from continuous to discrete making each number its

own distinct value

How do you implement Factor ( )?

In the "Colour ="

Document information

Uploaded on
September 9, 2026
Number of pages
9
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
QUINTER
3.6
(73)
Sold
420
Followers
105
Items
39867
Last sold
5 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions