Problem with using geom_jitter

Hello. I'm a new user of R Studio and i'm struggling to make a graph that I need.

It looks like this. I think maybe there is a problem because numbers on y axis range from 0 to 45,000? I checked few times are there are only numbers in the data.

I used formula as followed:

b <- ggplot(data = DATA, mapping = aes(x = 산업분류.대., y =연구개발비_자체))
b + geom_jitter()

Also, before there were some stars and blank spaces ("*") in the data so i replaced it using:


DATA$연구개발비_자체<- replace(DATA$연구개발비_자체, DATA$연구개발비_자체 == "*", 0)
DATA$연구개발비_자체<- replace(DATA$연구개발비_자체, DATA$연구개발비_자체 == "**", 0)
DATA$연구개발비_자체<- replace(DATA$연구개발비_자체, DATA$연구개발비_자체 == "***", 0)
DATA$연구개발비_자체<- replace(DATA$연구개발비_자체, DATA$연구개발비_자체 == " ", 0)

I would really appreciate your help. I tried to find answers to this issue but failed. I also tried using geom_col() and geom_point() but the same problem reappears...

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:


Short Version

You can share your data in a forum friendly way by passing the data to share to the dput() function.
If your data is too large you can use standard methods to reduce it before sending to dput().
When you come to share the dput() text that represents your data, please be sure to format your post with triple backticks on the line before your code begins to format it appropriately.

```
( example_df <- structure(list(Sepal.Length = c(5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 
5, 4.4, 4.9), Sepal.Width = c(3.5, 3, 3.2, 3.1, 3.6, 3.9, 3.4, 
3.4, 2.9, 3.1), Petal.Length = c(1.4, 1.4, 1.3, 1.5, 1.4, 1.7, 
1.4, 1.5, 1.4, 1.5), Petal.Width = c(0.2, 0.2, 0.2, 0.2, 0.2, 
0.4, 0.3, 0.2, 0.2, 0.1), Species = structure(c(1L, 1L, 1L, 1L, 
1L, 1L, 1L, 1L, 1L, 1L), .Label = c("setosa", "versicolor", "virginica"
), class = "factor")), row.names = c(NA, -10L), class = c("tbl_df", 
"tbl", "data.frame")))
```

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.