Plotting t-statistic in R

Hi, and welcome!

A reproducible example, called a reprex will attract more answers. @FJCC provides an example. Screen shots are no substitute.

In this case, you need to go beyond just the default print of t.test and explain what type of plot you're looking to produce. A single point, the test statistic, isn't very informative, although it's certainly possible to plot a point on the x or y axes with its value.

There is a plot method for the two-sample t test. See the examples in the help page:

require(graphics)

## Classical example: Student's sleep data
plot(extra ~ group, data = sleep)

Created on 2019-11-25 by the reprex package (v0.3.0)