Is it possible to use a where clause within ggplot?

0 votes

 Is it possible to use a where clause within ggplot?

diamonds[1:5,]
#   carat     cut   color  clarity    depth  table   price         x    y    z
# 1  0.23   Ideal       E      SI2     61.5     55     326      3.95 3.98 2.43  

I want to use some type of conditional statement against a CSV read file.

Nov 5, 2018 in Data Analytics by Hannah
• 14,070 points
53 views

1 answer to this question.

0 votes

You can use the subset function to filter rows from a data frame:

goodDiamods <- subset(diamonds, cut=='Good')
answered Nov 5, 2018 by Kalgi
• 40,460 points

Related Questions In Data Analytics

0 votes
0 answers

Is it possible to add a chart outside of another chart in R?

Is it possible to add a chart ...READ MORE

Aug 8 in Data Analytics by anonymous
11 views
0 votes
1 answer
0 votes
1 answer

Is it possible to change the column names of the dataset that I'm using in R?

That is definitely possible in R. You ...READ MORE

answered Dec 17, 2018 in Data Analytics by Anisha

edited Dec 17, 2018 43 views
0 votes
0 answers

How to use the where clause in R programming?

I'm trying to implement a where clause ...READ MORE

Dec 24, 2018 in Data Analytics by Sophie may
• 9,530 points
387 views
0 votes
1 answer
0 votes
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,040 points
397 views
0 votes
1 answer

Creating barplot with standard errors plotted in R

For df1 plot # Group data by when ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,040 points
73 views
+1 vote
1 answer

How to plot pixels in R?

You could use ggplot with the option geom_point(shape = "."). For ...READ MORE

answered Dec 6, 2018 in Data Analytics by Maverick
• 10,040 points
55 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 40,460 points
61 views
0 votes
1 answer