{"id":7288,"date":"2023-03-03T02:32:44","date_gmt":"2023-03-03T02:32:44","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/hw-help-asap-2\/"},"modified":"2023-03-03T02:32:44","modified_gmt":"2023-03-03T02:32:44","slug":"hw-help-asap-2","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/hw-help-asap-2\/","title":{"rendered":"hw help asap"},"content":{"rendered":"<div class=\"col-sm-12 messageContent\">\n <b>Learning Goal: <\/b>I&#8217;m working on a engineering multi-part question and need the explanation and answer to help me learn.<\/p>\n<p><strong>1.Write the R code for Lab 3 and lab 4 in files<br \/><\/strong><\/p>\n<p><strong>2.Question 1<\/strong><\/p>\n<ul>\n<li>Use lmplot() to look at the relationship between x and y.<\/li>\n<li>Plot a regression line .<\/li>\n<li>Now display with multiple row<\/li>\n<\/ul>\n<ul>\n<li>Now display with multiple col<\/li>\n<\/ul>\n<p><strong>Question 2<\/strong><\/p>\n<ul>\n<li>Use a white style for the plot.<\/li>\n<li>Create a lmplot() comparing the two columns.<\/li>\n<li>Remove the top and right spines using despine().<\/li>\n<\/ul>\n<p><strong>Q<\/strong><strong>uestion 3<\/strong><strong><\/strong><\/p>\n<ul>\n<li>Set the default Seaborn style and enable the matplotlib color codes.<\/li>\n<li><strong>Create a displot for the 1(any) column using matplotlib&#8217;s magenta (m) color code.<\/strong><strong><\/strong><\/li>\n<\/ul>\n<p><strong>Question 4<\/strong><\/p>\n<p>Create and display a Purples sequential palette containing 8 colors[\u00e2\u20ac\u02dcRed,Purple,Green].<\/p>\n<p>Create the Purples palette<\/p>\n<p>for p in [&#8216;Purples&#8217;,&#8217;Reds&#8217;,&#8217;Greens&#8217;]:<\/p>\n<p>sns.palplot(sns.color_palette(p, 8))<\/p>\n<p>plt.show()<\/p>\n<p><strong>Question 5<\/strong>Create a for loop to show the difference between the bright and colorblind palettes.<\/p>\n<p>Set the palette using the set_palette() function.<\/p>\n<p>Use a displot of (any) column<\/p>\n<p>Question 6<\/p>\n<ul>\n<li>\n<ul>\n<li>Use pandas&#8217; crosstab() function to build a table of visits by x and y.<\/li>\n<li>Print the pd_crosstab DataFrame.<\/li>\n<li>Plot the data using Seaborn&#8217;s heatmap().<\/li>\n<\/ul>\n<p>Question 7<\/p>\n<ul>\n<li>Create a crosstab table of x and y<\/li>\n<li>Create a heatmap of the data using the BuGn palette<\/li>\n<li>Disable the cbar and increase the linewidth to 0.3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learning Goal: I&#8217;m working on a engineering multi-part question and need the explanation and answer to help me learn. 1.Write the R code for Lab 3 and lab 4 in files 2.Question 1 Use lmplot() to look at the relationship between x and y. Plot a regression line . Now display with multiple row Now [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[185],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/7288"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=7288"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/7288\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=7288"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=7288"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=7288"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=7288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}