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,080 points
31 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
• 37,320 points

Related Questions In Data Analytics

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 30 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,430 points
275 views
0 votes
1 answer

Is it possible to link the R language and Julia?

R has a specific package just for ...READ MORE

answered Jan 21 in Data Analytics by Sophie may
• 9,430 points
40 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
302 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
59 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
42 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
• 37,320 points
52 views
0 votes
1 answer