I want to ask about boxplot

my homework is about creating a boxplot from .csv data. The data is about house' price and renovation state .Our assignment is about summarize house's price with renovation state= yes. her example code that summarize all data(renovation state = both yes and no) is
boxplot(data$price, horizontal = TRUE,main="Boxplot of price(USD))",col="blue")
my question is , if i want to create a boxplot from renovation house only .what should i do
ps. sorry for my poor English skill. If you have another question about this you can ask me below here.
thanks again.

Since this is homework, I will not answer completely but I will suggest a direction. Do you know how to make a new data frame that includes only the rows where renovation == "yes"? Your instructor might have called this "making a subset of a data frame".