-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab 5 - Generating Dots #10
Comments
@ecking which code chunk are you referring to? The first code chunk is related to bringing in the ACS data. Are you referring to the first code chunk following the title Generating Dots that begins with acs_split? I've gone through that code chunk and do not find any error when I knit the lab or when I execute code line-by-line within the RMD file. If the problem persists, please add the .RMD file you are using, specify the exact line of code you are having a problem with, and attach a screenshot where I can see the the last line of code you ran to produce the error and the error output. |
@ecking are you able to knit the file? On the .RMD file you sent I do not observe any error when knitting. The error is likely related to how you may be executing the code line-by-line. Try to highlight the entire code chunk at once to execute the code. |
@ecking It could also be related to how you may be running line-by-line executions in prior code chunks as well. Try executing entire code chunks at a time to make sure your ACS data is correct. |
@ecking @Anthony-Howell-PhD After I knitted the file, I was able to see the fully knitted document, and I got no errors. I got errors only when I tried to run it inside the chunk itself. If I remember correctly, this was the code for creating a variable I think the best solution might be to knit the entire file, maybe after restarting your computer and maybe even restarting RStudio. |
@ecking @Niagara1000 i'm sorry to see the troubles. I'm still unable to reproduce the error code that you are seeing on your end. I can knit without any error, and I can run the code line-by-line. I've gone through and pasted a snippet of the code into an .R file up to the point of where you see the error. The link is here. Please open it as a new .R file (not .RMD), select the entire code and execute the code simultaneously in the .R file. Can you still produce the error or does it work? |
Looks like restarting R and running worked. Glad I wasn't the only one with this error! |
@ecking Great. Sounds like it was an environment problem then. Glad you were able to fix the problem! @Niagara1000 good suggestion about restarting R and refreshing the R environment. |
Hi, I am looking at Question 3 from https://ds4ps.org/cpp-529-spr-2020/LABS/Lab5b-MapVis2.html This is my Plot 6 code:
This code works. but the instructions say use 'scale_fill_manual' and when I did that, I got this error when I tried to knit the file:
Can you please explain what is the difference between scale_fill_viridis and scale_fill_manual and when I need to use them? |
@Niagara1000 that is great you were able to manipulate the color scheme using `## Convert Integer into factor variable Assign 5 colorscol.ramp <- viridis(n = 5) # number of groups you desire |
ok, thank you Professor |
Hi there, I'm trying to run Part 3 of the lab and in the Rmd file I'm receiving an error at the first code chunk of the Generating Dots section.
I have not modified any code.
Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : group length is 0 but data length > 0
The text was updated successfully, but these errors were encountered: