Start learning 50% faster. Sign in now
The geom_point() function in ggplot2 is specifically designed for scatter plots in R. It plots individual points and allows for color differentiation based on a categorical variable, enhancing the visualization by showing relationships or distributions among categories. By assigning the color argument within aes(), each category can be uniquely colored, which makes it ideal for exploratory data analysis and comparing variables across groups. For example, visualizing height versus weight with different colors for male and female categories provides clear visual insight into any category-specific trends. Option A (geom_bar()) is incorrect as it’s used for bar charts, not scatter plots. Option B (geom_line()) is incorrect as it’s intended for line graphs, not individual point plotting. Option D (geom_histogram()) is incorrect because it’s used for histograms, not for scatter plots. Option E (facet_wrap()) is incorrect as it’s for creating small multiples rather than color-coding points.
The profit earned when article is sold for Rs. 1280 is 23 times of the loss incurred when it is sold for Rs. 800.Find the CP?
Seema sold a laptop at a profit of 15%. If she had bought it at 10% less and sold it for ₹ 2,100 less, she would have gained 20%. What was the cost p...
A businessman buys some lemons at the rate of 2 for 1 rupee and the same number of lemons at the rate of 3 for 1 rupee. At what price should he sell all...
Neha purchased a bicycle for Rs. 8,000 and sold it to Heena, making a profit of 12%. Heena then spent Rs. 640 on repairs and sold the bicycle to Tina, e...
A shopkeeper purchased an item for Rs. 1,500. He increased the price by 20% over its cost price and then sold the item after offe...
A, B, and C started business by investing Rs 2500, Rs 3000, Rs 4000. After 8 months B decreased his investment by Rs. _________. If the annual profit re...
An article was marked 80% above the cost price and sold after a discount of Rs. 780. If the selling price of the article is Rs. 1380 then find the cost ...
The selling price of article X is 40% more than its cost price. The selling price of article Y is Rs. 2,500 less than 1.5 times its cost price. If the c...
Furniture is marked 90% above its cost price, which makes the marked price Rs. 2,700 more than its cost price. If sold for a profit of Rs. 1,200, find t...
A shopkeeper sold an article after giving a discount of 25% and made a profit of Rs.75. Find the difference between the marked price and selling price o...