当前位置:天才代写 > 作业代写,留学生作业代写-北美、澳洲、英国等靠谱代写 > visualization代写 data代写 function代写 code代写 task代写 calculate代写

visualization代写 data代写 function代写 code代写 task代写 calculate代写

2020-10-18 14:29 星期日 所属: 作业代写,留学生作业代写-北美、澳洲、英国等靠谱代写 浏览:1389

visualization代写

Homework 1

visualization代写 Your task is to recreate the graphic from Gapminder, below. The data (countries.Rdata) was collected and modified from

Due 9/28

Your task is to recreate the graphic from Gapminder, below.visualization代写

The data (countries.Rdata) was collected and modified from The World Bank Databank, and so your recreation may not bethe exact data (though I think that’s where they got their data for this, so it should be close). The graphic is also in a PNG file attached to the assignment. The data is packaged neatly in a filecalled “countries.Rdata”. The variables should be self explanatory given the graph.

The purpose of this replication is to get some practice thinking about details and decisions in graphs. Find the details and try to figure out how to do them, though there will certainly be some differences between the gapminder visualization and your own, so you don’t need things to be perfect detail todetail. For instance, if the colors don’t match up perfectly, no big deal. But obviously color should be a part of the details that you notice and the decisions you ultimately make. A few more notes:

a)The 2013 doesn’t need to be there.visualization代写

b)Your color legend probably won’t be a map of the world. It’ll be just a normal legend. The graphs from Gapminder are highly interactive and highly stylized, so some things will need/have to

c)For colors, look into the functionscale_color_brewer

  1. Using the files Batting.csv and Salary.csv, answer the following: For the time-period of 2000-2010, calculate, for each team, the average of the per-player median yearly salary-per- game over the players career with that

You will turn in R code for this question. Important: please load your datasets as: salaries <- read_csv(“Salaries.csv”); batting <- read_csv(“Batting.csv”) so that, when I run your code, I don’t have to constantly re-load the datasets, I only need to run your pipeline.visualization代写

Your code should consist of a single pipeline. NO saving of variable other than the initial loading of the datasets.

There are three things you will need to do in order to complete this challenge…

a)Parse the..

b)Build your pipeline. Functions to consider (you may not need to use all of them, but to remind you of the ones we went over in class): filter(), mutate(), group_by(), summarize(), ungroup(), arrange(), inner_join(), right_join(), left_join(),anti_join()

c)Deal with oddities of the data that may give you wrong results (like the variable “stint”!! How do you plan to handle this? Make it clear what decision you make) (see variable descriptions below)

visualization代写
visualization代写

The variables in each dataset are:

Batting Table

playerID Player ID code yearID Year visualization代写

stint player’s stint (order of appearances within a season) (for instance, a player that switches teams mid-year will have two stints, with stint=1 indicating the first team, stint=2 the second team) teamID Team

lgID League

G Games

AB At Bats

R Runs

H Hits

2B Doubles

3B Triples

HR Homeruns

RBI Runs Batted In visualization代写

SB Stolen Bases

CS Caught Stealing

BB Base on Balls

SO Strikeouts

IBB Intentional walks

HBP Hit by pitch

SH Sacrifice hits

SF Sacrifice flies

GIDP Grounded into double plays

Salaries table visualization代写

yearID Year

teamID Team

lgID League

playerID Player ID code salary Salary

  1. For this question, you will use the restaurant data. Your task is to come up with two quality, different visualizations for each of the questions below, followed by a discussion of the relative merits of each visualization, followed by a decision stating which visualization you would choose. The questionsare

a.Do consumers rate restaurants whose cuisine is preferred differently than those whose cuisine is not preferred?visualization代写

b.Open response question: explore the data and tell a story of your own

Again, each question a) and b) should have 2 different visualizations which you will compare and contrast. The files you may find useful are: usercuisine.csv, which specifies the favorite cuisine(s) of each user, userprofile.csv which contains a profile of each use, and chefmozcuisine.csv, which describes the cuisine of each restaurant, and finally rating_final.csv which contains a column for the user, and column for the restaurant, and a column for the rating.visualization代写

Finally, each visualization should be created from one pipeline (in other words, starting with the uncleaned data to the final plot).

Note that there are several choices you will have to make with regards to the data. You should take some time to really look through the data and understand it in order to make these decisions.

visualization代写
visualization代写

更多其他:C++代写 java代写 r代写 代码代写 金融代写  python代写 web代写 物理代写 数学代写 考试助攻 C语言代写 计算机代写 数据分析代写 程式代写

合作平台:天才代写 幽灵代写 写手招聘 Essay代写

 

天才代写-代写联系方式