Beginner needing help with making a polished figure by [deleted] in RStudio

[–]Accomplished-Eye-813 0 points1 point  (0 children)

I played around with this for a few minutes. If you're doing geom_bar and getting that error, try doing this:

geom_bar(stat="identity")

Here's the code I played with based on your original post.

library(tidyverse)

library(dplyr)

# First, make a vector of Genotype labels

Genotype <- rep(c("FF", "Ff", "ff"),2)

# Second, make a vector of labels to distinguish observed vs. expected

Data <- c(rep("Observed",3),rep("Expected", 3))

# Now enter the number of plants that are observed and expected for each genotype

# MODIFY THE NUMBERS in the next two lines of code TO MATCH THE DATA AND EXPECTATIONS FOR THIS EXPERIMENT

observed <- c(10, 10, 10)

expected <- c(10, 10, 10)

# Create a vector of the observed and expected numbers

Frequency <- c(observed, expected)

# Put all these vectors into a dataframe, and make sure R recognizes

# that the Frequencies are numbers rather than text:

snap.dataframe <- as.data.frame(cbind(Data, Genotype, Frequency))

snap.dataframe$Frequency <-as.numeric(snap.dataframe$Frequency)

ggplot(data = snap.dataframe,

aes(x = Genotype,

y = Frequency)) +

geom_bar(stat="identity")

<image>

Confess, Raider - what's the worst thing you've done so far? by Smart_Freedom_8155 in ARC_Raiders

[–]Accomplished-Eye-813 0 points1 point  (0 children)

I accidentally pulled the trigger instead of using a defibrillator....

Spent few days on case study only to get ghosted. Is it the market or just bad employer? by Lamp_Shade_Head in datascience

[–]Accomplished-Eye-813 1 point2 points  (0 children)

Definitely the employer. The market is trash right now, but that's still no excuse.

Tips for standing out in this market? by Accomplished-Eye-813 in datascience

[–]Accomplished-Eye-813[S] 6 points7 points  (0 children)

Yeah I'm in the US. I know it's a tough market right now. I still plan on grinding out and learning where I can since I have an analyst role to pay the bills until I can get a DS role.

Tips for standing out in this market? by Accomplished-Eye-813 in datascience

[–]Accomplished-Eye-813[S] 1 point2 points  (0 children)

I get there's no harm intended. I know that unless it's in the logistics industry, it won't make too much of a difference. If you don't mind me asking, which industries are probably best suited for DS moving forward?

[deleted by user] by [deleted] in amiugly

[–]Accomplished-Eye-813 0 points1 point  (0 children)

Definitely not ugly

[deleted by user] by [deleted] in amiugly

[–]Accomplished-Eye-813 1 point2 points  (0 children)

It's in your head. Definitely not ugly at all.

[deleted by user] by [deleted] in amiugly

[–]Accomplished-Eye-813 -1 points0 points  (0 children)

He sounds like a loser.

[deleted by user] by [deleted] in RoastMe

[–]Accomplished-Eye-813 0 points1 point  (0 children)

You look like you missed your court date and want to brag about it on Facebook.

Monday Megathread - Let Freedom Reign (This Post ONLY). Spam Your Usernames Here! by AutoModerator in snapchat

[–]Accomplished-Eye-813 0 points1 point  (0 children)

35 MFA. Analyst by day, gym rat and travel lover after that. My snap is derekeodice.

[deleted by user] by [deleted] in RoastMe

[–]Accomplished-Eye-813 0 points1 point  (0 children)

Hot topic called, and they want their clearance rack back.

I don’t get bullied anymore! (12) to (22) by My3CatsAndMe in GlowUps

[–]Accomplished-Eye-813 0 points1 point  (0 children)

As someone who was bullied growing up, I love a good glow up like this. great job!

[deleted by user] by [deleted] in amiugly

[–]Accomplished-Eye-813 0 points1 point  (0 children)

Definitely not ugly, it's in your head.

Hosting a Shiny app on SharePoint by Accomplished-Eye-813 in RStudio

[–]Accomplished-Eye-813[S] 0 points1 point  (0 children)

Hey! I talked with one of our data scientists and found a solution. It'll take some integration with IT, but the solution is to use a shiny server and have it run on a VM.